phoenix6.wpiutils.motor_safety_implem
¶
Module Contents¶
- class phoenix6.wpiutils.motor_safety_implem.MotorSafetyImplem(stop_motor: Callable[[], None], description: str)¶
Bases:
wpilib.MotorSafety
Implem of MotorSafety interface from WPILib. This allows late/lazy construction of WPILib’s motor safety object.
- Parameters:
stop_motor (Callable[[], None]) – Lambda to stop the motor
description (str) – Description of motor controller
- stopMotor()¶
Stops the controller
- getDescription() str ¶
- Returns:
Description of motor controller
- Return type:
str