Class RobotHardware.PWMSpark

  • All Implemented Interfaces:
    edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj.motorcontrol.MotorController, edu.wpi.first.wpilibj.SpeedController, java.lang.AutoCloseable
    Enclosing class:
    RobotHardware

    public class RobotHardware.PWMSpark
    extends edu.wpi.first.wpilibj.motorcontrol.Spark
    • Field Summary

      • Fields inherited from class edu.wpi.first.wpilibj.motorcontrol.PWMMotorController

        m_pwm
    • Constructor Summary

      Constructors 
      Constructor Description
      PWMSpark​(int channel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setSafe​(double speed)  
      • Methods inherited from class edu.wpi.first.wpilibj.motorcontrol.PWMMotorController

        close, disable, enableDeadbandElimination, get, getChannel, getDescription, getInverted, getPwmHandle, initSendable, set, setInverted, stopMotor
      • 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
      • Methods inherited from interface edu.wpi.first.wpilibj.motorcontrol.MotorController

        setVoltage
    • Constructor Detail

      • PWMSpark

        public PWMSpark​(int channel)
    • Method Detail

      • setSafe

        public void setSafe​(double speed)