CTRE_Phoenix 5.20.2
|
#include <SupplyCurrentLimitConfiguration.h>
Public Member Functions | |
SupplyCurrentLimitConfiguration () | |
SupplyCurrentLimitConfiguration (bool enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime) | |
SupplyCurrentLimitConfiguration (const double *doubleArray, int doubleArraySz) | |
std::string | ToString () const |
std::vector< double > | ToArray () const |
void | Deserialize (const double *doubles, int doubleCnt) |
bool | Equals (const SupplyCurrentLimitConfiguration &rhs) const |
Public Attributes | |
bool | enable = false |
double | currentLimit = 0 |
double | triggerThresholdCurrent = 0 |
double | triggerThresholdTime = 0 |
Describes the desired stator current limiting behavior.
|
inline |
Default c'tor. Because currentLimit is zero, limiting is disabled.
|
inline |
double ctre::phoenix::motorcontrol::SupplyCurrentLimitConfiguration::currentLimit = 0 |
The "holding" current (amperes) to limit to when feature is activated.
bool ctre::phoenix::motorcontrol::SupplyCurrentLimitConfiguration::enable = false |
True/False to enable/disable limit feature.
double ctre::phoenix::motorcontrol::SupplyCurrentLimitConfiguration::triggerThresholdCurrent = 0 |
Current must exceed this threshold (amperes) before limiting occurs. If this value is less than currentLimit, then currentLimit is used as the threshold.
double ctre::phoenix::motorcontrol::SupplyCurrentLimitConfiguration::triggerThresholdTime = 0 |
How long current must exceed threshold (seconds) before limiting occurs.