Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Joystick getAxis in wpilibj (http://www.chiefdelphi.com/forums/showthread.php?t=90427)

tluks 29-01-2011 15:30

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?

ProgrammerMatt 31-01-2011 16:24

Re: Joystick getAxis in wpilibj
 
If you mean like
Code:

joystick.getRawAxis(#)  //#= AxisNumber

Joe Ross 31-01-2011 18:37

Re: Joystick getAxis in wpilibj
 
wpilib bugs can be reported in the wpilib tracker: http://firstforge.wpi.edu/sf/tracker...ilib_java_bugs

Ryan O 31-01-2011 19:13

Re: Joystick getAxis in wpilibj
 
In case that link ever changes, I will also mention it is included in the Eclipse Plug-in help, if that is the IDE and FRC Plug-in set you are using. It can be found by following the "report bugs" link on the troubleshooting page of the help contents for both the core and program builder plug-ins.


All times are GMT -5. The time now is 09:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi