NidecBrushless¶
-
class
wpilib.
NidecBrushless
(pwmChannel, dioChannel)[source]¶ Bases:
wpilib.SendableBase
,wpilib.MotorSafety
,wpilib.interfaces.SpeedController
Nidec Brushless Motor
Parameters: - pwmChannel – The PWM channel that the Nidec Brushless controller is attached to. 0-9 are on-board, 10-19 are on the MXP port
- dioChannel – The DIO channel that the Nidec Brushless controller is attached to. 0-9 are on-board, 10-25 are on the MXP port
-
enable
()[source]¶ Re-enable the motor after
disable()
has been called. Theset()
function must be called to set a new motor speed.
-
get
()[source]¶ Get the recently set value of the PWM.
Returns: The most recently set value for the PWM between -1.0 and 1.0. Return type: float
-
getChannel
()[source]¶ Gets the channel number associated with the object.
Returns: The channel number. Return type: int
-
pidWrite
(output)[source]¶ Write out the PID value as seen in the PIDOutput base object.
Parameters: output (float) – Write out the PWM value as was found in the PIDController