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:
Peter Johnson
2014-10-18 09:22:58 -07:00
parent 294e224fcd
commit 3365d0dc18

View File

@@ -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);
}
/**