Quote:
Originally Posted by team-4480
After so more research, it seems like I have to make a AxisType Class and then put in what each axis is? Thanks for the response!
|
Yeah, the docs aren't super clear on that, I'll need to update. When AxisType is specified, what it really means is pass in one of the constants that is defined in the class, or you can also just pass in a number. So something like...
Code:
joystick = wpilib.Joystick(0)
rightX = joystick.getAxis(4)
rightY = joystick.getAxis(5)
That might work. It might not.