Package com.ctre.phoenix.motorcontrol
Class WPI_MotorSafetyImplem
java.lang.Object
edu.wpi.first.wpilibj.MotorSafety
com.ctre.phoenix.motorcontrol.WPI_MotorSafetyImplem
implem of MotorSafety interface in WPI. This also allows late/lazy
construction of WPI's motor safety object (which mitigates late-released bugs from WPI).
-
Constructor Summary
ConstructorDescriptionWPI_MotorSafetyImplem
(edu.wpi.first.wpilibj.motorcontrol.MotorController speedController, String description) Constructor for WPI_MotorSafetyImplem -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj.MotorSafety
check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabled
-
Constructor Details
-
WPI_MotorSafetyImplem
public WPI_MotorSafetyImplem(edu.wpi.first.wpilibj.motorcontrol.MotorController speedController, String description) Constructor for WPI_MotorSafetyImplem- Parameters:
speedController
- Speed Controller to implement motor safety ondescription
- Description of speed controller
-
-
Method Details
-
stopMotor
Stop the controller- Specified by:
stopMotor
in classedu.wpi.first.wpilibj.MotorSafety
-
getDescription
- Specified by:
getDescription
in classedu.wpi.first.wpilibj.MotorSafety
- Returns:
- Description of speed controller
-