I’m having an issue getting the throttle position of the joystick. When I call the getThrottle() method on joystick the value is always 0 regardless of the throttle position. Below is the code I am using:
Not sure what you mean by “the throttle show up on any of the 6 axes”…
In software I’m using the wpilibj Joystick class. Below are the default axes:
static final byte kDefaultXAxis = 1;
static final byte kDefaultYAxis = 2;
static final byte kDefaultZAxis = 3;
static final byte kDefaultTwistAxis = 3;
static final byte kDefaultThrottleAxis = 4;
static final int kDefaultTriggerButton = 1;
static final int kDefaultTopButton = 2;
Is the throttle a different axis on this controller?
Glad you figured it out.
I know what an Attack 3 looks like; I’m looking at one. The picture I linked is what a throttle looks like, and an Attack 3 doesn’t have one of those.
My confusion mainly came from the image of the Logitech Attack 3 in the WPILib User’s Guide. It annotates the dial/lever on the rear of the controller as a “throttle”.