6namespace motorcontrol {
104 retval |=
APIError ? mask : 0; mask <<= 1;
116 UnderVoltage = (bits & mask) ?
true :
false; mask <<= 1;
126 APIError = (bits & mask) ?
true :
false; mask <<= 1;
127 SupplyOverV = (bits & mask) ?
true :
false; mask <<= 1;
149 std::stringstream work;
160 work <<
" APIError:" << (
APIError ?
"1" :
"0");
161 work <<
" SupplyOverV:" << (
SupplyOverV ?
"1" :
"0");
namespace ctre
Definition: paramEnum.h:5
All the sticky faults available to motor controllers.
Definition: StickyFaults.h:11
bool ReverseLimitSwitch
Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limi...
Definition: StickyFaults.h:25
bool RemoteLossOfSignal
Remote Sensor is no longer detected on bus.
Definition: StickyFaults.h:56
bool HardwareESDReset
Not used,.
Definition: StickyFaults.h:52
StickyFaults(int bits)
Creates fault list with specified bit field of faults.
Definition: StickyFaults.h:114
bool ForwardSoftLimit
Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is ...
Definition: StickyFaults.h:30
bool ForwardLimitSwitch
Forward limit switch is tripped and device is trying to go forward Only trips when the device is limi...
Definition: StickyFaults.h:20
std::string ToString()
Definition: StickyFaults.h:148
bool SensorOutOfPhase
Device detects its sensor is out of phase.
Definition: StickyFaults.h:48
int ToBitfield() const
Definition: StickyFaults.h:91
bool ReverseSoftLimit
Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is ...
Definition: StickyFaults.h:35
bool SensorOverflow
Device's sensor overflowed.
Definition: StickyFaults.h:44
bool HasAnyFault() const
Definition: StickyFaults.h:73
bool UnderVoltage
Motor Controller is under 6.5V.
Definition: StickyFaults.h:15
bool SupplyOverV
Supply is well above the rated voltage of the hardware.
Definition: StickyFaults.h:64
bool SupplyUnstable
Supply is rapidly fluctuating and unstable.
Definition: StickyFaults.h:68
bool APIError
Device detects an API error.
Definition: StickyFaults.h:60
StickyFaults()
Definition: StickyFaults.h:130
bool ResetDuringEn
Device was powered-on or reset while robot is enabled.
Definition: StickyFaults.h:40