Package com.ctre.phoenix.led
Class CANdleFaults
java.lang.Object
com.ctre.phoenix.led.CANdleFaults
Faults the CANdle can have
-
Field Summary
Modifier and TypeFieldDescriptionboolean
API error detected.boolean
Boot while receiving an enable frameboolean
Device detects hardware failureboolean
Output pin is shorted to somethingboolean
Exceeded output current of 6 ampsboolean
Device is over temperatureboolean
5V Line is over 6Vboolean
5V Line is under 4 Vboolean
VBat is over 30Vboolean
VBat is under 5V -
Constructor Summary
ConstructorDescriptionCANdleFaults
(int bits) Updates current fault list with specified bit field of faults -
Method Summary
-
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
-