|
CTRE Phoenix 6 C++ 26.3.0
|
The behavior of the gain scheduler on this slot. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
| constexpr | GainSchedBehaviorValue (int value) |
| constexpr | GainSchedBehaviorValue () |
| constexpr bool | operator== (GainSchedBehaviorValue other) const |
| constexpr auto | operator<=> (GainSchedBehaviorValue other) const |
| constexpr std::string_view | ToString () const |
| Gets the string representation of this enum. | |
| std::string | Serialize () const override |
Public Member Functions inherited from ctre::phoenix6::ISerializable | |
Public Attributes | |
| int | value |
Static Public Attributes | |
| static constexpr int | Inactive = 0 |
| No gain scheduling will occur. | |
| static constexpr int | ZeroOutput = 1 |
| The output of the PID controller will be completely zeroed, except for kG and the user FeedForward control request parameter. | |
| static constexpr int | UseSlot0 = 2 |
| Switch to Slot 0 while within the configured GainSchedErrorThreshold. | |
| static constexpr int | UseSlot1 = 3 |
| Switch to Slot 1 while within the configured GainSchedErrorThreshold. | |
| static constexpr int | UseSlot2 = 4 |
| Switch to Slot 2 while within the configured GainSchedErrorThreshold. | |
Friends | |
| CTREXPORT friend std::ostream & | operator<< (std::ostream &os, GainSchedBehaviorValue data) |
The behavior of the gain scheduler on this slot.
This specifies which gains to use while within the configured GainSchedErrorThreshold. The default is to continue using the specified slot.
Gain scheduling will not take effect when running velocity closed-loop controls.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineconstexpr |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
No gain scheduling will occur.
|
staticconstexpr |
Switch to Slot 0 while within the configured GainSchedErrorThreshold.
|
staticconstexpr |
Switch to Slot 1 while within the configured GainSchedErrorThreshold.
|
staticconstexpr |
Switch to Slot 2 while within the configured GainSchedErrorThreshold.
| int ctre::phoenix6::signals::GainSchedBehaviorValue::value |
|
staticconstexpr |
The output of the PID controller will be completely zeroed, except for kG and the user FeedForward control request parameter.