Package edu.wpi.first.hal
Class PowerDistributionStickyFaults
java.lang.Object
edu.wpi.first.hal.PowerDistributionStickyFaults
public class PowerDistributionStickyFaults extends Object
-
Field Summary
Fields Modifier and Type Field Description boolean
Brownout
boolean
CanBusOff
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
HasReset
-
Constructor Summary
Constructors Constructor Description PowerDistributionStickyFaults(int faults)
Constructs from a bitfield. -
Method Summary
Modifier and Type Method Description boolean
getBreakerFault(int channel)
Gets whether there is a sticky 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
-
CanBusOff
-
HasReset
-
-
Constructor Details
-
PowerDistributionStickyFaults
Constructs from a bitfield.- Parameters:
faults
- faults
-
-
Method Details
-
getBreakerFault
Gets whether there is a sticky breaker fault at the specified channel.- Parameters:
channel
- Channel to check for sticky faults.- Returns:
- True if there is a sticky breaker fault at the channel, otherwise false.
- Throws:
IndexOutOfBoundsException
- if the provided channel is outside of the range supported by the hardware.
-