CTRE Phoenix C++ 5.33.1
|
Sticky faults available to Pigeon. More...
#include <ctre/phoenix/sensors/Pigeon2_Faults.h>
Public Member Functions | |
bool | HasAnyFault () const |
uint64_t | ToBitfield () const |
void | Update (uint64_t bits) |
Updates current fault list with specified bit field of faults. More... | |
Pigeon2_Faults (uint64_t bits) | |
Creates fault list with specified bit field of faults. More... | |
Pigeon2_Faults () | |
Public Attributes | |
bool | HardwareFault |
Device detects hardware failure. More... | |
bool | APIError |
API error detected. More... | |
bool | UnderVoltage |
Device is under 6.5V. More... | |
bool | ResetDuringEn |
Device was powered-on or reset while robot is enabled. More... | |
bool | SaturatedRotVelocity |
The device rotated at a rate that exceeded its maximum. More... | |
bool | SaturatedAccel |
The device saw an acceleration that exceeded its maximum. More... | |
bool | SaturatedMag |
The device saw a magnetic field that exceeded its maximum. More... | |
bool | BootIntoMotion |
The Pigeon saw motion as soon as it booted, and didn't attempt to self-test its features. More... | |
bool | MagnetometerFault |
The magnetometer failed its self-test. More... | |
bool | GyroFault |
The gyro failed its self-test. More... | |
bool | AccelFault |
The Accelerometer failed its self-test. More... | |
Sticky faults available to Pigeon.
If the Phoenix 5 API must be used for this device, the device must have 22.X firmware. This firmware is available in Tuner X after selecting Phoenix 5 in the firmware year dropdown.
|
inline |
Creates fault list with specified bit field of faults.
bits | bit field of faults to update with |
|
inline |
|
inline |
|
inline |
|
inline |
Updates current fault list with specified bit field of faults.
bits | bit field of faults to update with |
bool ctre::phoenix::sensors::Pigeon2_Faults::AccelFault |
The Accelerometer failed its self-test.
This is likely due to hardware damage, oftentimes from exposing the Pigeon to a very large impact.
bool ctre::phoenix::sensors::Pigeon2_Faults::APIError |
API error detected.
Make sure API and firmware versions are compatible.
bool ctre::phoenix::sensors::Pigeon2_Faults::BootIntoMotion |
The Pigeon saw motion as soon as it booted, and didn't attempt to self-test its features.
This isn't an issue, but to prevent this don't turn the robot on while moving it.
bool ctre::phoenix::sensors::Pigeon2_Faults::GyroFault |
The gyro failed its self-test.
This is likely due to hardware damage.
bool ctre::phoenix::sensors::Pigeon2_Faults::HardwareFault |
Device detects hardware failure.
bool ctre::phoenix::sensors::Pigeon2_Faults::MagnetometerFault |
The magnetometer failed its self-test.
This is likely due to hardware damage, oftentimes from exposing the Pigeon to a very large magnetic field.
bool ctre::phoenix::sensors::Pigeon2_Faults::ResetDuringEn |
Device was powered-on or reset while robot is enabled.
Check your breakers and wiring.
bool ctre::phoenix::sensors::Pigeon2_Faults::SaturatedAccel |
The device saw an acceleration that exceeded its maximum.
Increase the range or avoid high-g events.
bool ctre::phoenix::sensors::Pigeon2_Faults::SaturatedMag |
The device saw a magnetic field that exceeded its maximum.
Keep the device far from strong magnetic fields.
bool ctre::phoenix::sensors::Pigeon2_Faults::SaturatedRotVelocity |
The device rotated at a rate that exceeded its maximum.
Increase the range or slow the rate of rotation.
bool ctre::phoenix::sensors::Pigeon2_Faults::UnderVoltage |
Device is under 6.5V.