Skip to content

Commit

Permalink
[wpilibj] Joystick: make remainder of get axis methods final (#6024)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Dec 9, 2023
1 parent a770110 commit 7bfadf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/Joystick.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public final double getY() {
*
* @return the z position
*/
public double getZ() {
public final double getZ() {
return getRawAxis(m_axes[AxisType.kZ.value]);
}

Expand All @@ -194,7 +194,7 @@ public double getZ() {
*
* @return The Twist value of the joystick.
*/
public double getTwist() {
public final double getTwist() {
return getRawAxis(m_axes[AxisType.kTwist.value]);
}

Expand All @@ -204,7 +204,7 @@ public double getTwist() {
*
* @return The Throttle value of the joystick.
*/
public double getThrottle() {
public final double getThrottle() {
return getRawAxis(m_axes[AxisType.kThrottle.value]);
}

Expand Down

0 comments on commit 7bfadf3

Please sign in to comment.