Package com.ctre.phoenixpro.wpiutils
Class MotorSafetyImplem
java.lang.Object
edu.wpi.first.wpilibj.MotorSafety
com.ctre.phoenixpro.wpiutils.MotorSafetyImplem
@Deprecated(forRemoval=true) public class MotorSafetyImplem extends MotorSafety
Deprecated, for removal: This API element is subject to removal in a future version.
Classes in the phoenixpro package will be removed in 2024.
Users should instead use classes from the phoenix6 package.
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
Constructors Constructor Description MotorSafetyImplem(MotorController speedController, String description)
Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024. -
Method Summary
Modifier and Type Method Description String
getDescription()
Deprecated, for removal: This API element is subject to removal in a future version.void
stopMotor()
Deprecated, for removal: This API element is subject to removal in a future version.Stop the controllerMethods inherited from class edu.wpi.first.wpilibj.MotorSafety
check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabled
-
Constructor Details
-
MotorSafetyImplem
@Deprecated(forRemoval=true) public MotorSafetyImplem(MotorController speedController, String description)Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.Constructor for WPI_MotorSafetyImplem- Parameters:
speedController
- Motor Controller to implement motor safety ondescription
- Description of motor controller
-
-
Method Details
-
stopMotor
Deprecated, for removal: This API element is subject to removal in a future version.Stop the controller- Specified by:
stopMotor
in classMotorSafety
-
getDescription
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDescription
in classMotorSafety
- Returns:
- Description of motor controller
-