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