SpeedController¶
-
class
wpilib.interfaces.
SpeedController
[source]¶ Bases:
wpilib.interfaces.PIDOutput
Interface 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)[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.
-