Package com.ctre.phoenix.sensors
Class Pigeon2_StickyFaults
java.lang.Object
com.ctre.phoenix.sensors.Pigeon2_StickyFaults
Faults available to Pigeon (Currently has none)
-
Field Summary
Modifier and TypeFieldDescriptionboolean
The Accelerometer failed its self-test.boolean
API error detected.boolean
The Pigeon saw motion as soon as it booted, and didn't attempt to self-test its features.boolean
The Pigeon missed an opportunity to acquire data.boolean
The gyro failed its self-test.boolean
Device detects hardware failureboolean
The magnetometer failed its self-test.boolean
The Motion Driver Software took too long to complete.boolean
Device was powered-on or reset while robot is enabled.boolean
The device saw an acceleration that exceeded its maximum.boolean
The device saw a magnetic field that exceeded its maximum.boolean
The device rotated at a rate that exceeded its maximum.boolean
Device is under 6.5V -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
void
update
(int bits) Updates current fault list with specified bit field of faults
-
Field Details
-
HardwareFault
Device detects hardware failure -
APIError
API error detected. Make sure API and firmware versions are compatible. -
UnderVoltage
Device is under 6.5V -
ResetDuringEn
Device was powered-on or reset while robot is enabled. Check your breakers and wiring. -
SaturatedRotVelocity
The device rotated at a rate that exceeded its maximum. Increase the range or slow the rate of rotation. -
SaturatedAccel
The device saw an acceleration that exceeded its maximum. Increase the range or avoid high-g events. -
SaturatedMag
The device saw a magnetic field that exceeded its maximum. Keep the device far from strong magnetic fields. -
MotionDriverTookTooLong
The Motion Driver Software took too long to complete. This is typical when calibrating. -
DataAcquiredLate
The Pigeon missed an opportunity to acquire data. This is typical when calibrating. -
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. -
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. -
GyroFault
The gyro failed its self-test. This is likely due to hardware damage. -
AccelFault
The Accelerometer failed its self-test. This is likely due to hardware damage, oftentimes from exposing the Pigeon to a very large impact.
-
-
Constructor Details
-
Pigeon2_StickyFaults
-
Pigeon2_StickyFaults
public Pigeon2_StickyFaults()
-
-
Method Details
-
hasAnyFault
- Returns:
- true if any faults are tripped
-
toBitfield
- Returns:
- Current fault list as a bit field
-
update
Updates current fault list with specified bit field of faults- Parameters:
bits
- bit field of faults to update with
-