Changes HAL to return -1 to 1 for joysticks (#35)

First part of the HAL changes. Returns -1 to 1 for joysticks instead of
-128 to 127. Implemented by replacing the old structure with a new
structure that uses floats instead of shorts.
This commit is contained in:
Thad House
2016-05-21 01:42:16 -07:00
committed by Peter Johnson
parent a4f0c4fbe0
commit 54092378e9
6 changed files with 34 additions and 18 deletions

View File

@@ -31,11 +31,11 @@ public class DriverStation implements RobotState.Interface {
}
private class HALJoystickAxes {
public short[] m_axes;
public float[] m_axes;
public byte m_count;
public HALJoystickAxes(int count) {
m_axes = new short[count];
m_axes = new float[count];
}
}