|
| 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
,
kCurrent = 4
, kMAXMotionPositionControl = 5
, kMAXMotionVelocityControl = 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
, kStatus7 = 7
,
kStatus8 = 8
, kStatus9 = 9
} |
| |
| enum class | SparkModel { kUnknown = 0
, kSparkFlex = 1
, kSparkMax = 2
} |
| |
| static const uint16_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 () |
| |
| REVLibError | SetpointCommand (double value, SparkLowLevel::ControlType ctrl=ControlType::kDutyCycle, ClosedLoopSlot pidSlot=ClosedLoopSlot::kSlot0, 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} |
| |
| SparkSoftLimit | m_ForwardSoftLimit |
| |
| std::atomic< bool > | m_forwardSoftLimitCreated {false} |
| |
| SparkSoftLimit | m_ReverseSoftLimit |
| |
| std::atomic< bool > | m_reverseSoftLimitCreated {false} |
| |
| MotorType | m_motorType |
| |
| SparkModel | m_expectedSparkModel |
| |
| void * | m_sparkMaxHandle |
| |