|
CTRE Phoenix 6 C++ 26.3.0
|
The behavior of kP output as the error crosses the GainSchedErrorThreshold during gain scheduling. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
| constexpr | GainSchedKpBehaviorValue (int value) |
| constexpr | GainSchedKpBehaviorValue () |
| constexpr bool | operator== (GainSchedKpBehaviorValue other) const |
| constexpr auto | operator<=> (GainSchedKpBehaviorValue 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 | Continuous = 0 |
| The gain scheduler will maintain continuity in the kP output as the error crosses the gain threshold. | |
| static constexpr int | Discontinuous = 1 |
| The gain scheduler will allow for a discontinuity in the kP output. | |
Friends | |
| CTREXPORT friend std::ostream & | operator<< (std::ostream &os, GainSchedKpBehaviorValue data) |
The behavior of kP output as the error crosses the GainSchedErrorThreshold during gain scheduling.
The output of kP can be adjusted to maintain continuity in output, or it can be left discontinuous.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineconstexpr |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
The gain scheduler will maintain continuity in the kP output as the error crosses the gain threshold.
This results in the best system stability, but it may result in output that does not match pOut = kP * error.
|
staticconstexpr |
The gain scheduler will allow for a discontinuity in the kP output.
This ensures that pOut = kP * error, but it may result in instability as the system's error crosses the gain threshold.
| int ctre::phoenix6::signals::GainSchedKpBehaviorValue::value |