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.hardware |
The
io.github.thunderbots.lightning.hardware package contains wrapper classes
that represent physical motors and servos on the robot. |
io.github.thunderbots.lightning.utility |
Provides utility classes.
|
Modifier and Type | Method and Description |
---|---|
static Motor |
Lightning.getMotor(java.lang.String name)
Gets a reference to the motor with the given name.
|
Modifier and Type | Class and Description |
---|---|
class |
CRServo
A
CRServo represents any physical continuous-rotation servo that is connected to
the robot. |
Modifier and Type | Field and Description |
---|---|
private Motor[] |
MotorSet.motors
The array of motors that this
MotorSet comprises. |
Modifier and Type | Method and Description |
---|---|
Motor[] |
MotorSet.getMotorArray()
Gets the array of motors that this
MotorSet comprises. |
Constructor and Description |
---|
MotorSet(Motor[] motors)
Constructs a new
MotorSet using the given motor array. |
Modifier and Type | Method and Description |
---|---|
static void |
Telemetry.sendMotor(Motor m)
Sends motor data from the robot controller to the driver station.
|
static void |
Telemetry.sendMotorPosition(Motor m)
Sends motor data from the robot controller to the driver station.
|
static void |
Telemetry.sendMotorPower(Motor m)
Sends motor data from the robot controller to the driver station.
|