phoenix6.wpiutils.motor_safety_implem#

Module Contents#

class phoenix6.wpiutils.motor_safety_implem.MotorSafetyImplem(motor_controller: wpilib.interfaces.MotorController, description: str)#

Bases: wpilib.MotorSafety

Implem of MotorSafety interface from WPILib. This allows late/lazy construction of WPILib’s motor safety object.

Parameters:
  • motor_controller (MotorController) – Motor Controller to implement motor safety on

  • description (str) – Description of motor controller

stopMotor()#

Stops the controller

getDescription() str#
Returns:

Description of motor controller

Return type:

str