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