Package | Description |
---|---|
io.github.thunderbots.lightning |
Provides classes that expose methods for general interfacing with the hardware on
the physical robot.
|
io.github.thunderbots.lightning.control.layout |
A control layout is a method of converting a joystick state (i.e left stick forward,
right stick backward, etc) into both forward and clockwise power, which are interpreted
by methods included in
DriveSystem . |
Modifier and Type | Method and Description |
---|---|
static Joystick |
Lightning.getJoystick(int joystick)
Gets a reference to the given joystick.
|
Modifier and Type | Method and Description |
---|---|
double |
TankControlLayout.getClockwisePower(Joystick joy) |
double |
MecanumControlLayout.getClockwisePower(Joystick joy) |
double |
DriveSpinControlLayout.getClockwisePower(Joystick joy) |
double |
ControlLayout.getClockwisePower(Joystick joy)
Gets the clockwise power that should be sent to the robot based on the current
state of the given joystick.
|
double |
TankControlLayout.getForwardPower(Joystick joy) |
double |
MecanumControlLayout.getForwardPower(Joystick joy) |
double |
DriveSpinControlLayout.getForwardPower(Joystick joy) |
double |
ControlLayout.getForwardPower(Joystick joy)
Gets the forward power that should be sent to the robot based on the current
state of the given joystick.
|
double |
MecanumControlLayout.getRightStrafePower(Joystick joy)
Gets the right strafe power that should be sent to the robot based on the current
state of the given joystick.
|