SpeedController¶
-
class
wpilib.interfaces.SpeedController[source]¶ Bases:
wpilib.interfaces.PIDOutputInterface for speed controlling devices.
-
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, 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.
-