|
enum class | IdleMode { kCoast = 0
, kBrake = 1
} |
|
enum class | SoftLimitDirection { kForward
, kReverse
} |
|
enum class | ResetMode { kNoResetSafeParameters
, kResetSafeParameters
} |
|
enum class | PersistMode { kNoPersistParameters
, kPersistParameters
} |
|
enum class | MotorType { kBrushed = 0
, kBrushless = 1
} |
|
enum class | ControlType {
kDutyCycle = 0
, kVelocity = 1
, kVoltage = 2
, kPosition = 3
,
kSmartMotion = 4
, kCurrent = 5
, kSmartVelocity = 6
, kMAXMotionPositionControl = 7
,
kMAXMotionVelocityControl = 8
} |
|
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
, kStatus7 = 7
} |
|
enum class | SparkModel { kSparkMax = 0
, kSparkFlex = 1
, kUnknown = 255
} |
|
static const uint8_t | kAPIMajorVersion = c_Spark_kAPIMajorVersion |
|
static const uint8_t | kAPIMinorVersion = c_Spark_kAPIMinorVersion |
|
static const uint8_t | kAPIBuildVersion = c_Spark_kAPIBuildVersion |
|
static const uint32_t | kAPIVersion = c_Spark_kAPIVersion |
|
| SparkBase (int deviceID, MotorType type, SparkModel model) |
|
SparkRelativeEncoder | GetEncoderEvenIfAlreadyCreated () |
|
uint8_t | GetMotorInterface () |
|
SparkBase::SparkModel | GetSparkModel () |
|
PeriodicStatus0 | GetPeriodicStatus0 () |
|
PeriodicStatus1 | GetPeriodicStatus1 () |
|
PeriodicStatus2 | GetPeriodicStatus2 () |
|
PeriodicStatus3 | GetPeriodicStatus3 () |
|
PeriodicStatus4 | GetPeriodicStatus4 () |
|
PeriodicStatus5 | GetPeriodicStatus5 () |
|
PeriodicStatus6 | GetPeriodicStatus6 () |
|
PeriodicStatus7 | GetPeriodicStatus7 () |
|
REVLibError | SetpointCommand (double value, SparkLowLevel::ControlType ctrl=ControlType::kDutyCycle, int pidSlot=0, double arbFeedforward=0, int arbFFUnits=0) |
|
float | GetSafeFloat (float f) |
|
double | m_setpoint {0.0} |
|
SparkRelativeEncoder | m_RelativeEncoder |
|
std::atomic< bool > | m_relativeEncoderCreated {false} |
|
SparkAnalogSensor | m_AnalogSensor |
|
std::atomic< bool > | m_analogSensorCreated {false} |
|
SparkAbsoluteEncoder | m_AbsoluteEncoder |
|
std::atomic< bool > | m_absoluteEncoderCreated {false} |
|
SparkClosedLoopController | m_ClosedLoopController |
|
std::atomic< bool > | m_closedLoopControllerCreated {false} |
|
SparkLimitSwitch | m_ForwardLimitSwitch |
|
std::atomic< bool > | m_forwardLimitSwitchCreated {false} |
|
SparkLimitSwitch | m_ReverseLimitSwitch |
|
std::atomic< bool > | m_reverseLimitSwitchCreated {false} |
|
MotorType | m_motorType |
|
SparkModel | m_expectedSparkModel |
|
void * | m_sparkMaxHandle |
|