Package | Description |
---|---|
edu.wpi.first.wpilibj |
The WPI Robotics library (WPILibJ) is a set of Java classes that interfaces to the hardware in the FRC
control system and your robot.
|
Modifier and Type | Field and Description |
---|---|
static Joystick.AxisType |
Joystick.AxisType.kNumAxis
axis: number of axis
|
static Joystick.AxisType |
Joystick.AxisType.kThrottle
axis: throttle
|
static Joystick.AxisType |
Joystick.AxisType.kTwist
axis: twist
|
static Joystick.AxisType |
Joystick.AxisType.kX
axis: x-axis
|
static Joystick.AxisType |
Joystick.AxisType.kY
axis: y-axis
|
static Joystick.AxisType |
Joystick.AxisType.kZ
axis: z-axis
|
Modifier and Type | Method and Description |
---|---|
double |
Joystick.getAxis(Joystick.AxisType axis)
For the current joystick, return the axis determined by the argument.
|
int |
Joystick.getAxisChannel(Joystick.AxisType axis)
Get the channel currently associated with the specified axis.
|
void |
Joystick.setAxisChannel(Joystick.AxisType axis,
int channel)
Set the channel associated with a specified axis.
|
Copyright © 2015. All rights reserved.