mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibj] Joystick: make remainder of get axis methods final (#6024)
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user