Package com.ctre.phoenix.led
Class CANdleFaults
java.lang.Object
com.ctre.phoenix.led.CANdleFaults
Faults the CANdle can have
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanAPI error detected.booleanBoot while receiving an enable framebooleanDevice detects hardware failurebooleanOutput pin is shorted to somethingbooleanExceeded output current of 6 ampsbooleanDevice is over temperatureboolean5V Line is over 6Vboolean5V Line is under 4 VbooleanVBat is over 30VbooleanVBat is under 5V -
Constructor Summary
ConstructorsConstructorDescriptionCANdleFaults(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
-