wpilib.PWMSpeedController, channel: int) → None¶
Common base class for all PWM Speed Controllers.
Constructor for a PWM Speed Controller connected via PWM.
channel – The PWM channel that the controller is attached to. 0-9 are on-board, 10-19 are on the MXP port
wpilib.PWMSpeedController) → float¶
Get the recently set value of the PWM. This value is affected by the inversion property. If you want the value that is sent directly to the SpeedController, use
The most recently set value for the PWM between -1.0 and 1.0.
wpilib.PWMSpeedController, output: float) → None¶
Write out the PID value as seen in the PIDOutput base object.
output – Write out the PWM value as was found in the PIDController
wpilib.PWMSpeedController, value: float) → None¶
Set the PWM value.
The PWM value is set using a range of -1.0 to 1.0, appropriately scaling the value for the FPGA.
speed – The speed value between -1.0 and 1.0 to set.