Class REVPHStickyFaults
java.lang.Object
org.wpilib.hardware.hal.REVPHStickyFaults
Sticky faults for a REV PH. These faults will remain active until they are reset by the user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanThe input voltage is below the minimum voltage.final booleanThe device's CAN controller experienced a "Bus Off" event.final booleanA warning was raised by the device's CAN controller.final booleanThe compressor output has an open circuit.final booleanAn overcurrent event occurred on the compressor output.final booleanThe firmware on the device has malfunctioned.final booleanThe hardware on the device has malfunctioned.final booleanThe device has rebooted.final booleanAn overcurrent event occurred on a solenoid output. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
compressorOverCurrent
public final boolean compressorOverCurrentAn overcurrent event occurred on the compressor output. -
compressorOpen
public final boolean compressorOpenThe compressor output has an open circuit. -
solenoidOverCurrent
public final boolean solenoidOverCurrentAn overcurrent event occurred on a solenoid output. -
brownout
public final boolean brownoutThe input voltage is below the minimum voltage. -
canWarning
public final boolean canWarningA warning was raised by the device's CAN controller. -
canBusOff
public final boolean canBusOffThe device's CAN controller experienced a "Bus Off" event. -
hardwareFault
public final boolean hardwareFaultThe hardware on the device has malfunctioned. -
firmwareFault
public final boolean firmwareFaultThe firmware on the device has malfunctioned. -
hasReset
public final boolean hasResetThe device has rebooted.
-
-
Constructor Details
-
REVPHStickyFaults
public REVPHStickyFaults(int faults) Called from HAL.- Parameters:
faults- sticky fault bit mask
-