Package com.ctre.phoenix.sensors
Class CANCoderStickyFaults
java.lang.Object
com.ctre.phoenix.sensors.CANCoderStickyFaults
Sticky Faults available to CANCoder (Currently has none)
-
Field Summary
Modifier and TypeFieldDescriptionboolean
API error detected.boolean
Device detects hardware failureboolean
Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being usedboolean
Device was powered-on or reset while robot is enabled.boolean
Device is under 6.5V -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
void
update
(int bits) Updates current sticky 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. -
MagnetTooWeak
Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being used
-
-
Constructor Details
-
CANCoderStickyFaults
public CANCoderStickyFaults()
-
-
Method Details
-
hasAnyFault
- Returns:
- true if any faults are tripped
-
toBitfield
- Returns:
- Current fault list as a bit field
-
update
Updates current sticky fault list with specified bit field of faults- Parameters:
bits
- bit field of sticky faults to update with
-