10#include <units/angle.h>
Definition Configuration.hpp:17
Configs that affect how software-limit switches behave.
Definition SoftwareLimitSwitchConfigs.hpp:24
units::angle::turn_t ReverseSoftLimitThreshold
Position threshold for reverse soft limit features.
Definition SoftwareLimitSwitchConfigs.hpp:61
constexpr SoftwareLimitSwitchConfigs()=default
std::string ToString() const override
constexpr SoftwareLimitSwitchConfigs & WithForwardSoftLimitThreshold(units::angle::turn_t newForwardSoftLimitThreshold)
Modifies this configuration's ForwardSoftLimitThreshold parameter and returns itself for method-chain...
Definition SoftwareLimitSwitchConfigs.hpp:114
units::angle::turn_t ForwardSoftLimitThreshold
Position threshold for forward soft limit features.
Definition SoftwareLimitSwitchConfigs.hpp:51
constexpr SoftwareLimitSwitchConfigs & WithReverseSoftLimitThreshold(units::angle::turn_t newReverseSoftLimitThreshold)
Modifies this configuration's ReverseSoftLimitThreshold parameter and returns itself for method-chain...
Definition SoftwareLimitSwitchConfigs.hpp:135
constexpr SoftwareLimitSwitchConfigs & WithReverseSoftLimitEnable(bool newReverseSoftLimitEnable)
Modifies this configuration's ReverseSoftLimitEnable parameter and returns itself for method-chaining...
Definition SoftwareLimitSwitchConfigs.hpp:93
ctre::phoenix::StatusCode Deserialize(std::string const &to_deserialize) final
bool ReverseSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reve...
Definition SoftwareLimitSwitchConfigs.hpp:41
constexpr SoftwareLimitSwitchConfigs & WithForwardSoftLimitEnable(bool newForwardSoftLimitEnable)
Modifies this configuration's ForwardSoftLimitEnable parameter and returns itself for method-chaining...
Definition SoftwareLimitSwitchConfigs.hpp:75
std::string Serialize() const final
bool ForwardSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forw...
Definition SoftwareLimitSwitchConfigs.hpp:34
Definition motor_constants.h:14