mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +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.
|
* @return the angle of the POV in degrees, or -1 if the POV is not pressed.
|
||||||
*/
|
*/
|
||||||
public int getPOV(int pov) {
|
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