Exemplo n.º 1
0
 @Override
 public void povHatUnregistered(int joystickIndex, int povHatIndex) {
   DriverStationPacket.Joystick j = driverStationPacket.getJoystick(joystickIndex);
   if (povHatIndex == j.getPOVHatCount() - 1) {
     j.setPOVHatCount(povHatIndex);
   }
 }
Exemplo n.º 2
0
 @Override
 public void povHatRegistered(int joystickIndex, int povHatIndex) {
   DriverStationPacket.Joystick j = getJoystick(joystickIndex);
   if (j.getPOVHatCount() <= povHatIndex) {
     j.setPOVHatCount(povHatIndex + 1);
   }
 }