View Single Post
  #1   Spotlight this post!  
Unread 29-01-2011, 15:30
tluks tluks is offline
Registered User
None #1126 (sparx)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: new york
Posts: 5
tluks is an unknown quantity at this point
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?
Reply With Quote