#include <MAXMotionConfig.h>
Inherits rev::BaseConfig.
◆ MAXMotionPositionMode
| Enumerator |
|---|
| kMAXMotionTrapezoidal | |
◆ MAXMotionConfig() [1/3]
| rev::spark::MAXMotionConfig::MAXMotionConfig |
( |
| ) |
|
|
default |
◆ ~MAXMotionConfig()
| rev::spark::MAXMotionConfig::~MAXMotionConfig |
( |
| ) |
|
|
overridedefault |
◆ MAXMotionConfig() [2/3]
◆ MAXMotionConfig() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Apply()
Applies settings from another MAXMotionConfig to this one.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters
-
- Returns
- The updated MAXMotionConfig for method chaining
◆ CruiseVelocity()
Set the cruise velocity for the MAXMotion mode of the controller for a specific closed loop slot. The units are in RPM.
- Parameters
-
| maxVelocity | The maximum velocity |
| slot | The closed loop slot to set the values for |
- Returns
- The modified MAXMotionConfig object for method chaining
◆ MaxAcceleration()
Set the maximum acceleration for the MAXMotion mode of the controller for a specific closed loop slot. This is the rate at which the velocity will increase until the max velocity is reached. The units are in RPM per second.
- Parameters
-
| maxAcceleration | The maximum acceleration |
| slot | The closed loop slot to set the values for |
- Returns
- The modified MAXMotionConfig object for method chaining
◆ AllowedProfileError()
Set the allowed profile error for the MAXMotion mode of the controller for a specific PID slot. This value is how much deviation from the profile is tolerated before the profile is regenerated. The units are in rotations.
- Parameters
-
| allowedError | The allowed error |
| slot | The closed loop slot to set the values for |
- Returns
- The modified MAXMotionConfig object for method chaining
◆ PositionMode()
Set the MAXMotion position control mode of the controller for a specific closed loop slot.
- Parameters
-
| mode | The MAXmotion position mode |
| slot | The closed loop slot to set the values for |
- Returns
- The modified MAXMotionConfig object for method chaining
The documentation for this class was generated from the following files: