Package com.ctre.phoenix.led
Class CANdleFaults
java.lang.Object
com.ctre.phoenix.led.CANdleFaults
public class CANdleFaults extends Object
Faults the CANdle can have
-
Field Summary
Fields Modifier and Type Field Description boolean
APIError
API error detected.boolean
BootDuringEnable
Boot while receiving an enable frameboolean
HardwareFault
Device detects hardware failureboolean
ShortCircuit
Output pin is shorted to somethingboolean
SoftwareFuse
Exceeded output current of 6 ampsboolean
ThermalFault
Device is over temperatureboolean
V5TooHigh
5V Line is over 6Vboolean
V5TooLow
5V Line is under 4 Vboolean
VBatTooHigh
VBat is over 30Vboolean
VBatTooLow
VBat is under 5V -
Constructor Summary
Constructors Constructor Description CANdleFaults()
CANdleFaults(int bits)
Updates current fault list with specified bit field of faults -
Method Summary
Modifier and Type Method Description boolean
hasAnyFault()
long
toBitfield()
void
update(long bits)
-
Field Details
-
HardwareFault
Device detects hardware failure -
APIError
API error detected. Make sure API and firmware versions are compatible. -
BootDuringEnable
Boot while receiving an enable frame -
VBatTooLow
VBat is under 5V -
VBatTooHigh
VBat is over 30V -
V5TooLow
5V Line is under 4 V -
V5TooHigh
5V Line is over 6V -
SoftwareFuse
Exceeded output current of 6 amps -
ThermalFault
Device is over temperature -
ShortCircuit
Output pin is shorted to something
-
-
Constructor Details
-
CANdleFaults
Updates current fault list with specified bit field of faults- Parameters:
bits
- bit field of faults to update with
-
CANdleFaults
public CANdleFaults()
-
-
Method Details
-
hasAnyFault
- Returns:
- true if any faults are tripped
-
toBitfield
- Returns:
- Current fault list as a bit field
-
update
-