[wpilibj] Joystick: make remainder of get axis methods final (#6024)

This commit is contained in:
Isaac Turner
2023-12-10 01:47:10 +08:00
committed by GitHub
parent a770110438
commit 7bfadf32e5

View File

@@ -184,7 +184,7 @@ public class Joystick extends GenericHID {
*
* @return the z position
*/
public double getZ() {
public final double getZ() {
return getRawAxis(m_axes[AxisType.kZ.value]);
}
@@ -194,7 +194,7 @@ public class Joystick extends GenericHID {
*
* @return The Twist value of the joystick.
*/
public double getTwist() {
public final double getTwist() {
return getRawAxis(m_axes[AxisType.kTwist.value]);
}
@@ -204,7 +204,7 @@ public class Joystick extends GenericHID {
*
* @return The Throttle value of the joystick.
*/
public double getThrottle() {
public final double getThrottle() {
return getRawAxis(m_axes[AxisType.kThrottle.value]);
}