Package edu.wpi.first.hal
Class REVPHFaults
java.lang.Object
edu.wpi.first.hal.REVPHFaults
Faults for a REV PH. These faults are only active while the condition is active.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanThe input voltage is below the minimum voltage.final booleanA warning was raised by the device's CAN controller.final booleanFault on channel 0.final booleanFault on channel 10.final booleanFault on channel 11.final booleanFault on channel 12.final booleanFault on channel 13.final booleanFault on channel 14.final booleanFault on channel 15.final booleanFault on channel 1.final booleanFault on channel 2.final booleanFault on channel 3.final booleanFault on channel 4.final booleanFault on channel 5.final booleanFault on channel 6.final booleanFault on channel 7.final booleanFault on channel 8.final booleanFault on channel 9.final booleanThe compressor output has an open circuit.final booleanAn overcurrent event occurred on the compressor output.final booleanThe hardware on the device has malfunctioned.final booleanAn overcurrent event occurred on a solenoid output. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetChannelFault(int channel) Gets whether there is a fault at the specified channel.
-
Field Details
-
Channel0Fault
Fault on channel 0. -
Channel1Fault
Fault on channel 1. -
Channel2Fault
Fault on channel 2. -
Channel3Fault
Fault on channel 3. -
Channel4Fault
Fault on channel 4. -
Channel5Fault
Fault on channel 5. -
Channel6Fault
Fault on channel 6. -
Channel7Fault
Fault on channel 7. -
Channel8Fault
Fault on channel 8. -
Channel9Fault
Fault on channel 9. -
Channel10Fault
Fault on channel 10. -
Channel11Fault
Fault on channel 11. -
Channel12Fault
Fault on channel 12. -
Channel13Fault
Fault on channel 13. -
Channel14Fault
Fault on channel 14. -
Channel15Fault
Fault on channel 15. -
CompressorOverCurrent
An overcurrent event occurred on the compressor output. -
CompressorOpen
The compressor output has an open circuit. -
SolenoidOverCurrent
An overcurrent event occurred on a solenoid output. -
Brownout
The input voltage is below the minimum voltage. -
CanWarning
A warning was raised by the device's CAN controller. -
HardwareFault
The hardware on the device has malfunctioned.
-
-
Constructor Details
-
REVPHFaults
Called from HAL to construct.- Parameters:
faults- the fault bitfields
-
-
Method Details
-
getChannelFault
Gets whether there is a fault at the specified channel.- Parameters:
channel- Channel to check for faults.- Returns:
- True if a a fault exists at the channel, otherwise false.
- Throws:
IndexOutOfBoundsException- if the provided channel is outside of the range supported by the hardware.
-