◆ ControlType
| Enumerator |
|---|
| kDutyCycle | |
| kVelocity | |
| kVoltage | |
| kRelativePosition | |
| kAbsolutePosition | |
| kContinuousAbsolutePosition | |
| kCurrent | |
◆ Responsiveness
How quickly the FIRST A301 reacts to the setpoint
| Enumerator |
|---|
| kHigh | |
| kNormal | |
| kLow | |
◆ A301()
| first::a301::internal::A301::A301 |
( |
int |
busId, |
|
|
int |
deviceId |
|
) |
| |
|
inline |
◆ ~A301()
| first::a301::internal::A301::~A301 |
( |
| ) |
|
|
inline |
◆ SetSetpoint()
Set the controller setpoint based on the selected control mode.
- Parameters
-
| setpoint | The setpoint to set depending on the control mode. For:
- Duty Cycle (-1.0 to 1.0)
- Velocity Control: Velocity (RPM)
- Voltage Control: Voltage (volts) (-12.0 to 12.0)
- Absolute Position Control: Position (-0.5 to 0.5)
- Continuous Absolute Position Control: Position (-0.5 to 0.5)
- Relative Position Control: Position (Rotations)
- Current Control: Current (Amps).
|
| ctrl | Is the control type |
| resp | How quickly the A301 responds to the setpoint |
- Returns
- REVLibError::kOk if successful
◆ GetPeriodicStatus0()
◆ GetPeriodicStatus1()
= 0, .motorLoopSpeedStickyWarning
◆ GetPeriodicStatus2()
◆ GetPeriodicStatus5()
◆ m_a301Handle
| c_Spark_handle first::a301::internal::A301::m_a301Handle {} |
◆ m_busId
| int first::a301::internal::A301::m_busId |
◆ m_deviceId
| int first::a301::internal::A301::m_deviceId |
◆ m_setpoint
| double first::a301::internal::A301::m_setpoint = 0.0 |
The documentation for this class was generated from the following file: