5#include "ctre/phoenix/string_util/string_util.h"
8 namespace motorcontrol {
48 Deserialize(doubleArray, doubleArraySz);
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";
70 std::vector<double> ToArray()
const
72 std::vector<double> retval;
73 retval.push_back(
enable ? 1 : 0);
79 void Deserialize(
const double * doubles,
int doubleCnt)
81 if (doubleCnt <= 0) {
return; }
103 retval &= (
enable == rhs.enable);
Definition: ErrorCode.h:5
Definition: SupplyCurrentLimitConfiguration.h:13
double triggerThresholdCurrent
Definition: SupplyCurrentLimitConfiguration.h:27
std::string ToString() const
Definition: SupplyCurrentLimitConfiguration.h:53
double triggerThresholdTime
Definition: SupplyCurrentLimitConfiguration.h:31
SupplyCurrentLimitConfiguration()
Definition: SupplyCurrentLimitConfiguration.h:36
bool enable
Definition: SupplyCurrentLimitConfiguration.h:17
double currentLimit
Definition: SupplyCurrentLimitConfiguration.h:21