6namespace motorcontrol {
 
  110        retval |= 
APIError ? mask : 0; mask <<= 1;
 
  122        UnderVoltage = (bits & mask) ? 
true : 
false; mask <<= 1;
 
  133        APIError = (bits & mask) ? 
true : 
false; mask <<= 1;
 
  134        SupplyOverV = (bits & mask) ? 
true : 
false; mask <<= 1;
 
  157        std::stringstream work;
 
  169        work << 
" APIError:" << (
APIError ? 
"1" : 
"0");
 
  170        work << 
" SupplyOverV:" << (
SupplyOverV ? 
"1" : 
"0");
 
namespace ctre
Definition: CANdleFaults.h:6
 
All the faults available to motor controllers.
Definition: Faults.h:11
 
int ToBitfield() const
Definition: Faults.h:96
 
bool ForwardLimitSwitch
Forward limit switch is tripped and device is trying to go forward Only trips when the device is limi...
Definition: Faults.h:20
 
bool HardwareESDReset
Not used,.
Definition: Faults.h:56
 
bool ForwardSoftLimit
Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is ...
Definition: Faults.h:30
 
Faults()
Definition: Faults.h:137
 
std::string ToString()
Definition: Faults.h:156
 
bool ReverseSoftLimit
Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is ...
Definition: Faults.h:35
 
bool SensorOverflow
Device's sensor overflowed.
Definition: Faults.h:48
 
bool SensorOutOfPhase
Device detects its sensor is out of phase.
Definition: Faults.h:52
 
Faults(int bits)
Creates fault list with specified bit field of faults.
Definition: Faults.h:120
 
bool HasAnyFault() const
Definition: Faults.h:77
 
bool ResetDuringEn
Device was powered-on or reset while robot is enabled.
Definition: Faults.h:44
 
bool RemoteLossOfSignal
Remote Sensor is no longer detected on bus.
Definition: Faults.h:60
 
bool HardwareFailure
Device detects hardware failure.
Definition: Faults.h:39
 
bool SupplyOverV
Supply is well above the rated voltage of the hardware.
Definition: Faults.h:68
 
bool UnderVoltage
Motor Controller is under 6.5V.
Definition: Faults.h:15
 
bool ReverseLimitSwitch
Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limi...
Definition: Faults.h:25
 
bool SupplyUnstable
Supply is rapidly fluctuating and unstable.
Definition: Faults.h:72
 
bool APIError
API error detected.
Definition: Faults.h:64