mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Merge "Fix Java Joystick.getPOV()."
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