#include <CANCoderFaults.h>
Faults available to CANCoderFaults
◆ CANCoderFaults()
ctre::phoenix::sensors::CANCoderFaults::CANCoderFaults |
( |
int |
bits | ) |
|
|
inline |
Updates current fault list with specified bit field of faults
- Parameters
-
bits | bit field of faults to update with |
◆ HasAnyFault()
bool ctre::phoenix::sensors::CANCoderFaults::HasAnyFault |
( |
| ) |
const |
|
inline |
- Returns
- true if any faults are tripped
◆ ToBitfield()
int ctre::phoenix::sensors::CANCoderFaults::ToBitfield |
( |
| ) |
const |
|
inline |
- Returns
- Current fault list as a bit field
◆ Update()
void ctre::phoenix::sensors::CANCoderFaults::Update |
( |
int |
bits | ) |
|
|
inline |
Updates current fault list with specified bit field of faults
- Parameters
-
bits | bit field of faults to update with |
◆ APIError
bool ctre::phoenix::sensors::CANCoderFaults::APIError |
API error detected. Make sure API and firmware versions are compatible.
◆ HardwareFault
bool ctre::phoenix::sensors::CANCoderFaults::HardwareFault |
Device detects hardware failure
◆ MagnetTooWeak
bool ctre::phoenix::sensors::CANCoderFaults::MagnetTooWeak |
Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being used
◆ ResetDuringEn
bool ctre::phoenix::sensors::CANCoderFaults::ResetDuringEn |
Device was powered-on or reset while robot is enabled. Check your breakers and wiring.
◆ UnderVoltage
bool ctre::phoenix::sensors::CANCoderFaults::UnderVoltage |
The documentation for this struct was generated from the following file: