10#include <units/current.h>
11#include <units/time.h>
Configs that directly affect current limiting features.
Definition CurrentLimitsConfigs.hpp:25
bool StatorCurrentLimitEnable
Enable motor stator current limiting.
Definition CurrentLimitsConfigs.hpp:61
constexpr CurrentLimitsConfigs & WithSupplyCurrentLimitEnable(bool newSupplyCurrentLimitEnable)
Modifies this configuration's SupplyCurrentLimitEnable parameter and returns itself for method-chaini...
Definition CurrentLimitsConfigs.hpp:218
constexpr CurrentLimitsConfigs & WithSupplyCurrentLimit(units::current::ampere_t newSupplyCurrentLimit)
Modifies this configuration's SupplyCurrentLimit parameter and returns itself for method-chaining and...
Definition CurrentLimitsConfigs.hpp:201
ctre::phoenix::StatusCode Deserialize(std::string const &to_deserialize) final
std::string Serialize() const final
units::current::ampere_t SupplyCurrentLimit
The absolute maximum amount of supply current allowed.
Definition CurrentLimitsConfigs.hpp:85
units::current::ampere_t StatorCurrentLimit
The amount of current allowed in the motor (motoring and regen current).
Definition CurrentLimitsConfigs.hpp:55
constexpr CurrentLimitsConfigs & WithSupplyCurrentLowerTime(units::time::second_t newSupplyCurrentLowerTime)
Modifies this configuration's SupplyCurrentLowerTime parameter and returns itself for method-chaining...
Definition CurrentLimitsConfigs.hpp:265
constexpr CurrentLimitsConfigs & WithSupplyCurrentLowerLimit(units::current::ampere_t newSupplyCurrentLowerLimit)
Modifies this configuration's SupplyCurrentLowerLimit parameter and returns itself for method-chainin...
Definition CurrentLimitsConfigs.hpp:243
constexpr CurrentLimitsConfigs()=default
constexpr CurrentLimitsConfigs & WithStatorCurrentLimit(units::current::ampere_t newStatorCurrentLimit)
Modifies this configuration's StatorCurrentLimit parameter and returns itself for method-chaining and...
Definition CurrentLimitsConfigs.hpp:149
units::current::ampere_t SupplyCurrentLowerLimit
The amount of supply current allowed after the regular SupplyCurrentLimit is active for longer than S...
Definition CurrentLimitsConfigs.hpp:105
std::string ToString() const override
bool SupplyCurrentLimitEnable
Enable motor supply current limiting.
Definition CurrentLimitsConfigs.hpp:91
constexpr CurrentLimitsConfigs & WithStatorCurrentLimitEnable(bool newStatorCurrentLimitEnable)
Modifies this configuration's StatorCurrentLimitEnable parameter and returns itself for method-chaini...
Definition CurrentLimitsConfigs.hpp:166
units::time::second_t SupplyCurrentLowerTime
Reduces supply current to the SupplyCurrentLowerLimit after limiting to SupplyCurrentLimit for this p...
Definition CurrentLimitsConfigs.hpp:116
Definition Configuration.hpp:17
Definition motor_constants.h:14