Class SimSparkMax

  • All Implemented Interfaces:
    edu.wpi.first.wpilibj.PIDOutput, edu.wpi.first.wpilibj.Sendable, edu.wpi.first.wpilibj.SpeedController, java.lang.AutoCloseable

    public class SimSparkMax
    extends com.revrobotics.CANSparkMax
    implements edu.wpi.first.wpilibj.Sendable
    • Nested Class Summary

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

        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

        kAPIBuildVersion, kAPIMajorVersion, kAPIMinorVersion, kAPIVersion, m_motorType, m_sparkMax
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double get()  
      void initSendable​(edu.wpi.first.wpilibj.smartdashboard.SendableBuilder builder)  
      void set​(double speed)  
      void setVoltage​(double outputVolts)  
      • Methods inherited from class com.revrobotics.CANSparkMax

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

        enableExternalUSBControl, getDeviceId, getFirmwareString, getFirmwareVersion, getInitialMotorType, getMotorType, getSafeFloat, getSerialNumber, restoreFactoryDefaults, restoreFactoryDefaults, setAltEncPosition, setControlFramePeriodMs, setEncPosition, setIAccum, setMotorType, setPeriodicFramePeriod
      • 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.Sendable

        addChild, getName, getSubsystem, setName, setName, setName, setName, setSubsystem
    • Constructor Detail

      • SimSparkMax

        public SimSparkMax​(int deviceID,
                           com.revrobotics.CANSparkMaxLowLevel.MotorType type)
    • Method Detail

      • set

        public void set​(double speed)
        Specified by:
        set in interface edu.wpi.first.wpilibj.SpeedController
        Overrides:
        set in class com.revrobotics.CANSparkMax
      • get

        public double get()
        Specified by:
        get in interface edu.wpi.first.wpilibj.SpeedController
        Overrides:
        get in class com.revrobotics.CANSparkMax
      • setVoltage

        public void setVoltage​(double outputVolts)
        Specified by:
        setVoltage in interface edu.wpi.first.wpilibj.SpeedController
        Overrides:
        setVoltage in class com.revrobotics.CANSparkMax
      • initSendable

        public void initSendable​(edu.wpi.first.wpilibj.smartdashboard.SendableBuilder builder)
        Specified by:
        initSendable in interface edu.wpi.first.wpilibj.Sendable