|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Joystick getAxis in wpilibj
WPIlibj currently has:
public double getAxis(final AxisType axis) { switch (axis.value) { case AxisType.kX_val: return getX(); case AxisType.kY_val: return getY(); case AxisType.kZ_val: return getZ(); case AxisType.kTwist_val: return getTwist(); case AxisType.kThrottle_val: return getThrottle(); default: return 0.0; } I think there should also be: case AxisType.kNumAxis_val before the default. Does anyone know where wpilibj issues can be reported? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|