public interface SpeedController extends PIDSink, SpeedSink, SpeedSource
| Modifier and Type | Method and Description |
|---|---|
double |
getSpeed()
Common interface for getting the current set speed of a speed
controller.
|
default void |
pidWrite(double value) |
default void |
set(double speed,
byte syncGroup)
Deprecated.
Replaced by
setSpeed(double), only here for
CANJaguar compatibility. |
void |
setInverted(boolean inverted)
Set the inverted state of the speed controller.
|
void |
setSpeed(double speed)
Set the speed of the SpeedController
|
void |
stopMotor()
Stop/Disable the motor.
|
double getSpeed()
getSpeed in interface SpeedSourcedefault void set(double speed,
byte syncGroup)
setSpeed(double), only here for
CANJaguar compatibility.speed - The speed to set. Value should be between -1.0 and 1.0.syncGroup - The update group to add this Set() to, pending
UpdateSyncGroup(). If 0, update immediately.void setSpeed(double speed)
void setInverted(boolean inverted)
inverted - true to invert the values sent to the motor.void stopMotor()