Package edu.wpi.first.hal
Class PowerDistributionFaults
java.lang.Object
edu.wpi.first.hal.PowerDistributionFaults
public class PowerDistributionFaults extends Object
-
Field Summary
Fields Modifier and Type Field Description boolean
Brownout
boolean
CanWarning
boolean
Channel0BreakerFault
boolean
Channel10BreakerFault
boolean
Channel11BreakerFault
boolean
Channel12BreakerFault
boolean
Channel13BreakerFault
boolean
Channel14BreakerFault
boolean
Channel15BreakerFault
boolean
Channel16BreakerFault
boolean
Channel17BreakerFault
boolean
Channel18BreakerFault
boolean
Channel19BreakerFault
boolean
Channel1BreakerFault
boolean
Channel20BreakerFault
boolean
Channel21BreakerFault
boolean
Channel22BreakerFault
boolean
Channel23BreakerFault
boolean
Channel2BreakerFault
boolean
Channel3BreakerFault
boolean
Channel4BreakerFault
boolean
Channel5BreakerFault
boolean
Channel6BreakerFault
boolean
Channel7BreakerFault
boolean
Channel8BreakerFault
boolean
Channel9BreakerFault
boolean
HardwareFault
-
Constructor Summary
Constructors Constructor Description PowerDistributionFaults(int faults)
Constructs from a bitfield. -
Method Summary
Modifier and Type Method Description boolean
getBreakerFault(int channel)
Gets whether there is a breaker fault at the specified channel.
-
Field Details
-
Channel0BreakerFault
-
Channel1BreakerFault
-
Channel2BreakerFault
-
Channel3BreakerFault
-
Channel4BreakerFault
-
Channel5BreakerFault
-
Channel6BreakerFault
-
Channel7BreakerFault
-
Channel8BreakerFault
-
Channel9BreakerFault
-
Channel10BreakerFault
-
Channel11BreakerFault
-
Channel12BreakerFault
-
Channel13BreakerFault
-
Channel14BreakerFault
-
Channel15BreakerFault
-
Channel16BreakerFault
-
Channel17BreakerFault
-
Channel18BreakerFault
-
Channel19BreakerFault
-
Channel20BreakerFault
-
Channel21BreakerFault
-
Channel22BreakerFault
-
Channel23BreakerFault
-
Brownout
-
CanWarning
-
HardwareFault
-
-
Constructor Details
-
PowerDistributionFaults
Constructs from a bitfield.- Parameters:
faults
- faults
-
-
Method Details
-
getBreakerFault
Gets whether there is a breaker fault at the specified channel.- Parameters:
channel
- Channel to check for faults.- Returns:
- True if there is a breaker fault at the channel, otherwise false.
- Throws:
IndexOutOfBoundsException
- if the provided channel is outside of the range supported by the hardware.
-