REVLib - C++
rev::CANSparkMaxLowLevel Class Reference

#include <CANSparkMaxLowLevel.h>

Classes

struct  PeriodicStatus0
 
struct  PeriodicStatus1
 
struct  PeriodicStatus2
 
struct  TelemetryMessage
 

Public Types

enum class  MotorType { kBrushed = 0 , kBrushless = 1 }
 
enum class  ControlType {
  kDutyCycle = 0 , kVelocity = 1 , kVoltage = 2 , kPosition = 3 ,
  kSmartMotion = 4 , kCurrent = 5 , kSmartVelocity = 6
}
 
enum class  ParameterStatus {
  kOK = 0 , kInvalidID = 1 , kMismatchType = 2 , kAccessMode = 3 ,
  kInvalid = 4 , kNotImplementedDeprecated = 5
}
 
enum class  PeriodicFrame {
  kStatus0 = 0 , kStatus1 = 1 , kStatus2 = 2 , kStatus3 = 3 ,
  kStatus4 = 4 , kStatus5 = 5 , kStatus6 = 6
}
 
enum class  TelemetryID {
  kBusVoltage = 0 , kOutputCurrent , kVelocity , kPosition ,
  kIAccum , kAppliedOutput , kMotorTemp , kFaults ,
  kStickyFaults , kAnalogVoltage , kAnalogPosition , kAnalogVelocity ,
  kAltEncPosition , kAltEncVelocity , kTotalStreams
}
 

Public Member Functions

virtual ~CANSparkMaxLowLevel ()
 

Detailed Description

Member Enumeration Documentation

◆ MotorType

Deprecated:
Use CANSparkLowLevel::MotorType instead
Enumerator
kBrushed 
kBrushless 

◆ ControlType

Deprecated:
Use CANSparkLowLevel::ControlType instead
Enumerator
kDutyCycle 
kVelocity 
kVoltage 
kPosition 
kSmartMotion 
kCurrent 
kSmartVelocity 

◆ ParameterStatus

Deprecated:
Use CANSparkLowLevel::ParameterStatus instead
Enumerator
kOK 
kInvalidID 
kMismatchType 
kAccessMode 
kInvalid 
kNotImplementedDeprecated 

◆ PeriodicFrame

Deprecated:
Use CANSparkLowLevel::PeriodicFrame instead
Enumerator
kStatus0 
kStatus1 
kStatus2 
kStatus3 
kStatus4 
kStatus5 
kStatus6 

◆ TelemetryID

Deprecated:
Use CANSparkLowLevel::TelemetryID instead
Enumerator
kBusVoltage 
kOutputCurrent 
kVelocity 
kPosition 
kIAccum 
kAppliedOutput 
kMotorTemp 
kFaults 
kStickyFaults 
kAnalogVoltage 
kAnalogPosition 
kAnalogVelocity 
kAltEncPosition 
kAltEncVelocity 
kTotalStreams 

Constructor & Destructor Documentation

◆ ~CANSparkMaxLowLevel()

virtual rev::CANSparkMaxLowLevel::~CANSparkMaxLowLevel ( )
inlinevirtual

Closes the SPARK MAX Controller


The documentation for this class was generated from the following file: