#include <FeedForwardConfig.h>
Inherits rev::BaseConfig.
|
| FeedForwardConfig ()=default |
|
| ~FeedForwardConfig () override=default |
|
| FeedForwardConfig (const FeedForwardConfig &)=delete |
|
FeedForwardConfig & | operator= (const FeedForwardConfig &)=delete |
|
| FeedForwardConfig (FeedForwardConfig &&) noexcept=delete |
|
FeedForwardConfig & | operator= (FeedForwardConfig &&) noexcept=delete |
|
FeedForwardConfig & | Apply (FeedForwardConfig &config) |
|
FeedForwardConfig & | kS (double kS, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | kV (double kV, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | kA (double kA, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | kG (double kG, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | kCos (double kCos, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | kCosRatio (double kCosRatio, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | sv (double kS, double kV, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | sva (double kS, double kV, double kA, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | svag (double kS, double kV, double kA, double kG, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | svacr (double kS, double kV, double kA, double kCos, double kCosRatio, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | sg (double kS, double kG, ClosedLoopSlot slot=kSlot0) |
|
FeedForwardConfig & | scr (double kS, double kCos, double kCosRatio, ClosedLoopSlot slot=kSlot0) |
|
virtual | ~BaseConfig ()=default |
|
virtual std::string | Flatten () |
|
◆ FeedForwardConfig() [1/3]
rev::spark::FeedForwardConfig::FeedForwardConfig |
( |
| ) |
|
|
default |
◆ ~FeedForwardConfig()
rev::spark::FeedForwardConfig::~FeedForwardConfig |
( |
| ) |
|
|
overridedefault |
◆ FeedForwardConfig() [2/3]
◆ FeedForwardConfig() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Apply()
Applies settings from another FeedForwardConfig 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 FeedForwardConfig for method chaining
◆ kS()
Set the kS Static Gain of the controller for a specific closed loop slot.
- Parameters
-
kS | The kS gain in Volts |
slot | The closed loop slot to set the values for |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ kV()
Set the kV Velocity Gain of the controller for a specific closed loop slot.
This is not applied in Position control mode.
- Parameters
-
kV | The kV gain in Volts |
slot | The closed loop slot to set the values for |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ kA()
Set the kA Acceleration Gain of the controller for a specific closed loop slot.
This is only applied in MAXMotion control modes
- Parameters
-
kA | The kA gain in Volts |
slot | The closed loop slot to set the values for |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ kG()
Set the kG Static Gravity Gain of the controller for a specific closed loop slot.
This is statically applied, for an elevator or linear mechanism. Set it to 0 if kCos is being used.
This is only applied in Position and MAXMotion Position control modes
- Parameters
-
kG | The kG gain in Volts |
slot | The closed loop slot to set the values for |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ kCos()
Set the kCos Cosine Gravity Gain of the controller for a specific closed loop slot.
This is multiplied by the cosine of the absolute position of the mechanism (See kCosRatio, ClosedLoopSlot slot) for info on configuring this) for an arm mechanism. Set it to 0 if kG is being used.
This is only applied in Position and MAXMotion Position control modes
- Parameters
-
kCos | The kCos gain in Volts |
slot | The closed loop slot to set the values for |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ kCosRatio()
Set the kCosRatio of the controller for a specific closed loop slot.
This sets the ratio that is used to calculate the absolute position of your arm mechanism for use with kCos. This is applied after the conversion factor and should convert from those units to absolute rotations of your mechanism. Ensure your selected encoder is zeroed such that 0 = horizontal.
- Parameters
-
kCosRatio | The kCosRatio in Volts |
slot | The closed loop slot to set the values for |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ sv()
◆ sva()
◆ svag()
Set the kS, kV, kA, and kG gains for the provided slot in one call.
For more information on the kS, kV, kA, and kG gains, see FeedForwardConfig#kS(double), FeedForwardConfig#kV(double), FeedForwardConfig#kA(double), and FeedForwardConfig#kG(double).
- Parameters
-
kS | The kS gain in Volts |
kV | The kV gain in Volts per velocity |
kA | The kA gain in Volts per velocity per second |
kG | The kG gain in Volts |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ svacr()
Set the kS, kV, kA, kCos, and kCosRatio gains for the provided slot in one call.
For more information on the kS, kV, kA, kCos, and kCosRatio gains, see FeedForwardConfig#kS(double), FeedForwardConfig#kV(double), FeedForwardConfig#kA(double), FeedForwardConfig#kCos(double), and FeedForwardConfig#kCosRatio(double).
- Parameters
-
kS | The kS gain in Volts |
kV | The kV gain in Volts per velocity |
kA | The kA gain in Volts per velocity per second |
kCos | The kCos gain in Volts |
kCosRatio | The ratio used to calculate the absolute position of your arm mechanism for use with kCos |
- Returns
- The modified FeedForwardConfig object for method chaining
◆ sg()
◆ scr()
The documentation for this class was generated from the following files: