11#include <wpi/units/angle.hpp>
12#include <wpi/units/dimensionless.hpp>
45 wpi::units::scalar_t
kP = 0;
63 wpi::units::scalar_t
kI = 0;
82 wpi::units::scalar_t
kD = 0;
104 wpi::units::scalar_t
kS = 0;
120 wpi::units::scalar_t
kV = 0;
137 wpi::units::scalar_t
kA = 0;
154 wpi::units::scalar_t
kG = 0;
246 kP = std::move(newKP);
275 kI = std::move(newKI);
305 kD = std::move(newKD);
338 kS = std::move(newKS);
365 kV = std::move(newKV);
393 kA = std::move(newKA);
421 kG = std::move(newKG);
Definition Configuration.hpp:17
signals::GravityTypeValue GravityType
Gravity feedforward/feedback type.
Definition Slot2Configs.hpp:174
constexpr Slot2Configs & WithGravityType(signals::GravityTypeValue newGravityType)
Modifies this configuration's GravityType parameter and returns itself for method-chaining and easier...
Definition Slot2Configs.hpp:450
static Slot2Configs From(SlotConfigs const &value)
Converts the provided value to an instance of this type.
wpi::units::scalar_t kP
Proportional gain.
Definition Slot2Configs.hpp:45
constexpr Slot2Configs & WithKV(wpi::units::scalar_t newKV)
Modifies this configuration's kV parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:363
ctre::phoenix::StatusCode Deserialize(std::string const &to_deserialize) final
constexpr Slot2Configs & WithGravityArmPositionOffset(wpi::units::turn_t newGravityArmPositionOffset)
Modifies this configuration's GravityArmPositionOffset parameter and returns itself for method-chaini...
Definition Slot2Configs.hpp:507
constexpr Slot2Configs & WithKD(wpi::units::scalar_t newKD)
Modifies this configuration's kD parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:303
wpi::units::scalar_t kV
Velocity feedforward gain.
Definition Slot2Configs.hpp:120
constexpr Slot2Configs & WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue newStaticFeedforwardSign)
Modifies this configuration's StaticFeedforwardSign parameter and returns itself for method-chaining ...
Definition Slot2Configs.hpp:480
constexpr Slot2Configs()=default
std::string Serialize() const final
wpi::units::scalar_t kS
Static feedforward gain.
Definition Slot2Configs.hpp:104
wpi::units::turn_t GravityArmPositionOffset
Gravity feedback position offset when using the Arm/Cosine gravity type.
Definition Slot2Configs.hpp:209
constexpr Slot2Configs & WithKS(wpi::units::scalar_t newKS)
Modifies this configuration's kS parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:336
constexpr Slot2Configs & WithKA(wpi::units::scalar_t newKA)
Modifies this configuration's kA parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:391
constexpr Slot2Configs & WithKI(wpi::units::scalar_t newKI)
Modifies this configuration's kI parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:273
wpi::units::scalar_t kG
Gravity feedforward/feedback gain.
Definition Slot2Configs.hpp:154
constexpr Slot2Configs & WithKP(wpi::units::scalar_t newKP)
Modifies this configuration's kP parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:244
wpi::units::scalar_t kD
Derivative gain.
Definition Slot2Configs.hpp:82
signals::StaticFeedforwardSignValue StaticFeedforwardSign
Static feedforward sign during position closed loop.
Definition Slot2Configs.hpp:193
wpi::units::scalar_t kI
Integral gain.
Definition Slot2Configs.hpp:63
constexpr Slot2Configs & WithKG(wpi::units::scalar_t newKG)
Modifies this configuration's kG parameter and returns itself for method-chaining and easier to use c...
Definition Slot2Configs.hpp:419
constexpr Slot2Configs & WithGainSchedBehavior(signals::GainSchedBehaviorValue newGainSchedBehavior)
Modifies this configuration's GainSchedBehavior parameter and returns itself for method-chaining and ...
Definition Slot2Configs.hpp:530
std::string ToString() const override
wpi::units::scalar_t kA
Acceleration feedforward gain.
Definition Slot2Configs.hpp:137
signals::GainSchedBehaviorValue GainSchedBehavior
The behavior of the gain scheduler on this slot.
Definition Slot2Configs.hpp:221
Gains for the specified slot.
Definition SlotConfigs.hpp:26
Definition ExternalFeedbackConfigs.hpp:21
Definition ExternalFeedbackConfigs.hpp:16
Definition FrcUsageReport.hpp:12
Definition motor_constants.h:14
The behavior of the gain scheduler on this slot.
Definition SpnEnums.hpp:5059
static constexpr int Inactive
No gain scheduling will occur.
Definition SpnEnums.hpp:5065
Gravity feedforward/feedback type.
Definition SpnEnums.hpp:1488
static constexpr int Elevator_Static
The system's gravity feedforward is constant, such as an elevator.
Definition SpnEnums.hpp:1495
Static feedforward sign during position closed loop.
Definition SpnEnums.hpp:2475
static constexpr int UseVelocitySign
Use the velocity reference sign.
Definition SpnEnums.hpp:2483