8 namespace motorcontrol {
55 std::stringstream work;
58 work <<
"Limiting is disabled.";
66 work <<
"Current Limiting will activate if SUPPLY current exceeds " << effectiveThresholdCurr <<
" amps for " <<
triggerThresholdTime <<
" seconds." <<
" Then current will hold at " <<
currentLimit <<
" amps";
72 std::vector<double> retval;
73 retval.push_back(
enable ? 1 : 0);
81 if (doubleCnt <= 0) {
return; }
namespace ctre
Definition: paramEnum.h:5
Describes the desired stator current limiting behavior.
Definition: SupplyCurrentLimitConfiguration.h:13
double triggerThresholdCurrent
Current must exceed this threshold (amperes) before limiting occurs.
Definition: SupplyCurrentLimitConfiguration.h:27
void Deserialize(const double *doubles, int doubleCnt)
Definition: SupplyCurrentLimitConfiguration.h:79
SupplyCurrentLimitConfiguration(bool enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime)
Definition: SupplyCurrentLimitConfiguration.h:38
std::string ToString() const
Definition: SupplyCurrentLimitConfiguration.h:53
double triggerThresholdTime
How long current must exceed threshold (seconds) before limiting occurs.
Definition: SupplyCurrentLimitConfiguration.h:31
bool Equals(const SupplyCurrentLimitConfiguration &rhs) const
Definition: SupplyCurrentLimitConfiguration.h:100
SupplyCurrentLimitConfiguration()
Default c'tor.
Definition: SupplyCurrentLimitConfiguration.h:36
std::vector< double > ToArray() const
Definition: SupplyCurrentLimitConfiguration.h:70
bool enable
True/False to enable/disable limit feature.
Definition: SupplyCurrentLimitConfiguration.h:17
double currentLimit
The "holding" current (amperes) to limit to when feature is activated.
Definition: SupplyCurrentLimitConfiguration.h:21
SupplyCurrentLimitConfiguration(const double *doubleArray, int doubleArraySz)
Definition: SupplyCurrentLimitConfiguration.h:46