Class WPI_MotorSafetyImplem

java.lang.Object
edu.wpi.first.wpilibj.MotorSafety
com.ctre.phoenix.motorcontrol.WPI_MotorSafetyImplem

public class WPI_MotorSafetyImplem extends edu.wpi.first.wpilibj.MotorSafety
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
    WPI_MotorSafetyImplem(edu.wpi.first.wpilibj.motorcontrol.MotorController speedController, String description)
    Constructor for WPI_MotorSafetyImplem
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Stop the controller

    Methods inherited from class edu.wpi.first.wpilibj.MotorSafety

    check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 on
      description - Description of speed controller
  • Method Details

    • stopMotor

      public void stopMotor()
      Stop the controller
      Specified by:
      stopMotor in class edu.wpi.first.wpilibj.MotorSafety
    • getDescription

      Specified by:
      getDescription in class edu.wpi.first.wpilibj.MotorSafety
      Returns:
      Description of speed controller