Package edu.wpi.first.hal
Class REVPHFaults
java.lang.Object
edu.wpi.first.hal.REVPHFaults
public class REVPHFaults extends Object
-
Field Summary
Fields Modifier and Type Field Description boolean
Brownout
boolean
CanWarning
boolean
Channel0Fault
boolean
Channel10Fault
boolean
Channel11Fault
boolean
Channel12Fault
boolean
Channel13Fault
boolean
Channel14Fault
boolean
Channel15Fault
boolean
Channel1Fault
boolean
Channel2Fault
boolean
Channel3Fault
boolean
Channel4Fault
boolean
Channel5Fault
boolean
Channel6Fault
boolean
Channel7Fault
boolean
Channel8Fault
boolean
Channel9Fault
boolean
CompressorOpen
boolean
CompressorOverCurrent
boolean
HardwareFault
boolean
SolenoidOverCurrent
-
Constructor Summary
Constructors Constructor Description REVPHFaults(int faults)
Called from HAL to construct. -
Method Summary
Modifier and Type Method Description boolean
getChannelFault(int channel)
Gets whether there is a fault at the specified channel.
-
Field Details
-
Channel0Fault
-
Channel1Fault
-
Channel2Fault
-
Channel3Fault
-
Channel4Fault
-
Channel5Fault
-
Channel6Fault
-
Channel7Fault
-
Channel8Fault
-
Channel9Fault
-
Channel10Fault
-
Channel11Fault
-
Channel12Fault
-
Channel13Fault
-
Channel14Fault
-
Channel15Fault
-
CompressorOverCurrent
-
CompressorOpen
-
SolenoidOverCurrent
-
Brownout
-
CanWarning
-
HardwareFault
-
-
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.
-