11#include <units/angle.h>
Configs that affect general behavior during closed-looping.
Definition ClosedLoopGeneralConfigs.hpp:24
signals::GainSchedKpBehaviorValue GainSchedKpBehavior
The behavior of kP output as the error crosses the GainSchedErrorThreshold during gain scheduling.
Definition ClosedLoopGeneralConfigs.hpp:81
bool ContinuousWrap
Wrap position error within [-0.5, +0.5) mechanism rotations.
Definition ClosedLoopGeneralConfigs.hpp:40
std::string Serialize() const final
constexpr ClosedLoopGeneralConfigs & WithContinuousWrap(bool newContinuousWrap)
Modifies this configuration's ContinuousWrap parameter and returns itself for method-chaining and eas...
Definition ClosedLoopGeneralConfigs.hpp:101
constexpr ClosedLoopGeneralConfigs & WithDifferentialContinuousWrap(bool newDifferentialContinuousWrap)
Modifies this configuration's DifferentialContinuousWrap parameter and returns itself for method-chai...
Definition ClosedLoopGeneralConfigs.hpp:125
std::string ToString() const override
ctre::phoenix::StatusCode Deserialize(std::string const &to_deserialize) final
bool DifferentialContinuousWrap
Wrap differential difference position error within [-0.5, +0.5) mechanism rotations.
Definition ClosedLoopGeneralConfigs.hpp:53
constexpr ClosedLoopGeneralConfigs & WithGainSchedKpBehavior(signals::GainSchedKpBehaviorValue newGainSchedKpBehavior)
Modifies this configuration's GainSchedKpBehavior parameter and returns itself for method-chaining an...
Definition ClosedLoopGeneralConfigs.hpp:174
constexpr ClosedLoopGeneralConfigs()=default
units::angle::turn_t GainSchedErrorThreshold
The position closed-loop error threshold for gain scheduling.
Definition ClosedLoopGeneralConfigs.hpp:73
constexpr ClosedLoopGeneralConfigs & WithGainSchedErrorThreshold(units::angle::turn_t newGainSchedErrorThreshold)
Modifies this configuration's GainSchedErrorThreshold parameter and returns itself for method-chainin...
Definition ClosedLoopGeneralConfigs.hpp:155
Definition Configuration.hpp:17
Definition motor_constants.h:14
The behavior of kP output as the error crosses the GainSchedErrorThreshold during gain scheduling.
Definition SpnEnums.hpp:4995
static constexpr int Continuous
The gain scheduler will maintain continuity in the kP output as the error crosses the gain threshold.
Definition SpnEnums.hpp:5004