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.
set(speed, syncGroup=0)[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.
  • syncGroup – The update group to add this set() to, pending updateSyncGroup(). If 0 (or unspecified), update immediately.