mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Fix Java Joystick.getPOV().
It subtracts 1 from pov; this should not be done here as it is done in the DriverStation class. Change-Id: I7fba2c87fc4dcb2f693201346b0d935662a49678
This commit is contained in:
@@ -285,7 +285,7 @@ public class Joystick extends GenericHID {
|
||||
* @return the angle of the POV in degrees, or -1 if the POV is not pressed.
|
||||
*/
|
||||
public int getPOV(int pov) {
|
||||
return m_ds.getStickPOV(m_port, pov - 1);
|
||||
return m_ds.getStickPOV(m_port, pov);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user