Class RobotHardware.SparkMax

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

    public class RobotHardware.SparkMax
    extends com.revrobotics.CANSparkMax
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.revrobotics.CANSparkMax

        com.revrobotics.CANSparkMax.ControlType, com.revrobotics.CANSparkMax.ExternalFollower, com.revrobotics.CANSparkMax.FaultID, com.revrobotics.CANSparkMax.IdleMode, com.revrobotics.CANSparkMax.InputMode, com.revrobotics.CANSparkMax.SoftLimitDirection
      • Nested classes/interfaces inherited from class com.revrobotics.CANSparkMaxLowLevel

        com.revrobotics.CANSparkMaxLowLevel.FollowConfig, com.revrobotics.CANSparkMaxLowLevel.MotorType, com.revrobotics.CANSparkMaxLowLevel.PeriodicFrame, com.revrobotics.CANSparkMaxLowLevel.PeriodicStatus0, com.revrobotics.CANSparkMaxLowLevel.PeriodicStatus1, com.revrobotics.CANSparkMaxLowLevel.PeriodicStatus2
    • Field Summary

      • Fields inherited from class com.revrobotics.CANSparkMaxLowLevel

        isClosed, kAPIBuildVersion, kAPIMajorVersion, kAPIMinorVersion, kAPIVersion, motorType, sparkMaxHandle
    • Constructor Summary

      Constructors 
      Constructor Description
      SparkMax​(int deviceId, com.revrobotics.CANSparkMaxLowLevel.MotorType type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setSafe​(double speed)  
      void setSafePosition​(double speed)  
      • Methods inherited from class com.revrobotics.CANSparkMax

        burnFlash, clearFaults, disable, disableVoltageCompensation, enableSoftLimit, enableVoltageCompensation, follow, follow, follow, follow, get, getAlternateEncoder, getAlternateEncoder, getAlternateEncoder, getAnalog, getAnalog, getAppliedOutput, getBusVoltage, getClosedLoopRampRate, getEncoder, getEncoder, getEncoder, getFault, getFaults, getFeedbackDeviceID, getForwardLimitSwitch, getForwardLimitSwitch, getIdleMode, getInverted, getLastError, getMotorTemperature, getOpenLoopRampRate, getOutputCurrent, getPIDController, getReverseLimitSwitch, getReverseLimitSwitch, getSoftLimit, getStickyFault, getStickyFaults, getVoltageCompensationNominalVoltage, isFollower, isSoftLimitEnabled, set, setCANTimeout, setClosedLoopRampRate, setIdleMode, setInverted, setOpenLoopRampRate, setSecondaryCurrentLimit, setSecondaryCurrentLimit, setSmartCurrentLimit, setSmartCurrentLimit, setSmartCurrentLimit, setSoftLimit, setVoltage, stopMotor
      • Methods inherited from class com.revrobotics.CANSparkMaxLowLevel

        close, enableExternalUSBControl, getDeviceId, getFirmwareString, getFirmwareVersion, getInitialMotorType, getMotorType, getSafeFloat, getSerialNumber, restoreFactoryDefaults, restoreFactoryDefaults, setControlFramePeriodMs, setPeriodicFramePeriod, throwIfClosed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SparkMax

        public SparkMax​(int deviceId,
                        com.revrobotics.CANSparkMaxLowLevel.MotorType type)
    • Method Detail

      • setSafe

        public void setSafe​(double speed)
      • setSafePosition

        public void setSafePosition​(double speed)