SpeedController

class wpilib.interfaces.SpeedController[source]

Bases: wpilib.interfaces.PIDOutput

Interface for speed controlling devices.

disable()[source]

Disable the speed controller.

get()[source]

Common interface for getting the current set speed of a speed controller.

Returns:The current set speed. Value is between -1.0 and 1.0.
getInverted()[source]

Common interface for determining if a speed controller is in the inverted state or not.

Returns:True if in inverted state
set(speed)[source]

Common interface for setting the speed of a speed controller.

Parameters:speed – The speed to set. Value should be between -1.0 and 1.0.
setInverted(isInverted)[source]

Common interface for inverting direction of a speed controller.

Parameters:isInverted – The state of inversion
stopMotor()[source]

Stops motor movement. Motor can be moved again by calling set without having to re-enable the motor.