Package com.ctre.phoenix6.wpiutils
Class MotorSafetyImplem
java.lang.Object
edu.wpi.first.wpilibj.MotorSafety
com.ctre.phoenix6.wpiutils.MotorSafetyImplem
public class MotorSafetyImplem extends MotorSafety
Implem of MotorSafety interface from WPILib. This also allows late/lazy
construction of WPILib's motor safety object.
-
Constructor Summary
Constructors Constructor Description MotorSafetyImplem(MotorController motorController, String description)
Constructor for MotorSafetyImplem -
Method Summary
Modifier and Type Method Description String
getDescription()
void
stopMotor()
Stops the controllerMethods inherited from class edu.wpi.first.wpilibj.MotorSafety
check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabled
-
Constructor Details
-
MotorSafetyImplem
Constructor for MotorSafetyImplem- Parameters:
motorController
- Motor Controller to implement motor safety ondescription
- Description of motor controller
-
-
Method Details
-
stopMotor
Stops the controller- Specified by:
stopMotor
in classMotorSafety
-
getDescription
- Specified by:
getDescription
in classMotorSafety
- Returns:
- Description of motor controller
-