Package com.ctre.phoenix6.wpiutils
Class MotorSafetyImplem
java.lang.Object
edu.wpi.first.wpilibj.MotorSafety
com.ctre.phoenix6.wpiutils.MotorSafetyImplem
Implem of MotorSafety interface from WPILib. This also allows late/lazy
construction of WPILib's motor safety object.
-
Constructor Summary
ConstructorDescriptionMotorSafetyImplem
(Runnable stopMotor, String description) Constructor for MotorSafetyImplem -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj.MotorSafety
check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabled
-
Constructor Details
-
MotorSafetyImplem
Constructor for MotorSafetyImplem- Parameters:
stopMotor
- Lambda to stop the motordescription
- 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
-