Package | Description |
---|---|
io.github.thunderbots.lightning.hardware |
The
io.github.thunderbots.lightning.hardware package contains wrapper classes
that represent physical motors and servos on the robot. |
Modifier and Type | Field and Description |
---|---|
private Motor.Encoder |
Motor.encoder
The encoder that is attached to this motor.
|
Modifier and Type | Method and Description |
---|---|
Motor.Encoder |
Motor.getEncoder()
Gets the encoder attached to this motor.
|
Motor.Encoder |
CRServo.getEncoder()
Deprecated.
A CR servo has no way to track its position. Calling this method on a
CRServo will return null. |