8 namespace motorcontrol {
64 std::stringstream work;
67 work <<
"Limiting is disabled.";
75 work <<
"Current Limiting will activate if STATOR current exceeds " << effectiveThresholdCurr <<
" amps for " <<
triggerThresholdTime <<
" seconds." <<
" Then current will hold at " <<
currentLimit <<
" amps";
81 std::vector<double> retval;
82 retval.push_back(
enable ? 1 : 0);
90 if (doubleCnt <= 0) {
return; }
namespace ctre
Definition: paramEnum.h:5
Describes the desired stator current limiting behavior.
Definition: StatorCurrentLimitConfiguration.h:22
bool Equals(const StatorCurrentLimitConfiguration &rhs) const
Definition: StatorCurrentLimitConfiguration.h:109
std::vector< double > ToArray() const
Definition: StatorCurrentLimitConfiguration.h:79
double triggerThresholdCurrent
Current must exceed this threshold (amperes) before limiting occurs.
Definition: StatorCurrentLimitConfiguration.h:36
bool enable
True/False to enable/disable limit feature.
Definition: StatorCurrentLimitConfiguration.h:26
double currentLimit
The "holding" current (amperes) to limit to when feature is activated.
Definition: StatorCurrentLimitConfiguration.h:30
StatorCurrentLimitConfiguration(bool enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime)
Definition: StatorCurrentLimitConfiguration.h:52
std::string ToString() const
Definition: StatorCurrentLimitConfiguration.h:62
void Deserialize(const double *doubles, int doubleCnt)
Definition: StatorCurrentLimitConfiguration.h:88
double triggerThresholdTime
How long current must exceed threshold (seconds) before limiting occurs.
Definition: StatorCurrentLimitConfiguration.h:40
StatorCurrentLimitConfiguration(const double *doubleArray, int doubleArraySz)
Definition: StatorCurrentLimitConfiguration.h:47
StatorCurrentLimitConfiguration()
Default c'tor.
Definition: StatorCurrentLimitConfiguration.h:45