Package edu.wpi.first.hal
Class PowerDistributionStickyFaults
java.lang.Object
edu.wpi.first.hal.PowerDistributionStickyFaults
Sticky faults for a PowerDistribution device. These faults will remain active until they are
reset by the user.
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
The input voltage was below the minimum voltage.final boolean
The device's CAN controller experienced a "Bus Off" event.final boolean
A warning was raised by the device's CAN controller.final boolean
Breaker fault on channel 0.final boolean
Breaker fault on channel 10.final boolean
Breaker fault on channel 11.final boolean
Breaker fault on channel 12.final boolean
Breaker fault on channel 13.final boolean
Breaker fault on channel 14.final boolean
Breaker fault on channel 15.final boolean
Breaker fault on channel 16.final boolean
Breaker fault on channel 17.final boolean
Breaker fault on channel 18.final boolean
Breaker fault on channel 19.final boolean
Breaker fault on channel 1.final boolean
Breaker fault on channel 20.final boolean
Breaker fault on channel 21.final boolean
Breaker fault on channel 22.final boolean
Breaker fault on channel 23.final boolean
Breaker fault on channel 2.final boolean
Breaker fault on channel 3.final boolean
Breaker fault on channel 4.final boolean
Breaker fault on channel 5.final boolean
Breaker fault on channel 6.final boolean
Breaker fault on channel 7.final boolean
Breaker fault on channel 8.final boolean
Breaker fault on channel 9.final boolean
The firmware on the device has malfunctioned.final boolean
The hardware on the device has malfunctioned.final boolean
The device has rebooted. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
getBreakerFault
(int channel) Gets whether there is a sticky breaker fault at the specified channel.
-
Field Details
-
Channel0BreakerFault
Breaker fault on channel 0. -
Channel1BreakerFault
Breaker fault on channel 1. -
Channel2BreakerFault
Breaker fault on channel 2. -
Channel3BreakerFault
Breaker fault on channel 3. -
Channel4BreakerFault
Breaker fault on channel 4. -
Channel5BreakerFault
Breaker fault on channel 5. -
Channel6BreakerFault
Breaker fault on channel 6. -
Channel7BreakerFault
Breaker fault on channel 7. -
Channel8BreakerFault
Breaker fault on channel 8. -
Channel9BreakerFault
Breaker fault on channel 9. -
Channel10BreakerFault
Breaker fault on channel 10. -
Channel11BreakerFault
Breaker fault on channel 11. -
Channel12BreakerFault
Breaker fault on channel 12. -
Channel13BreakerFault
Breaker fault on channel 13. -
Channel14BreakerFault
Breaker fault on channel 14. -
Channel15BreakerFault
Breaker fault on channel 15. -
Channel16BreakerFault
Breaker fault on channel 16. -
Channel17BreakerFault
Breaker fault on channel 17. -
Channel18BreakerFault
Breaker fault on channel 18. -
Channel19BreakerFault
Breaker fault on channel 19. -
Channel20BreakerFault
Breaker fault on channel 20. -
Channel21BreakerFault
Breaker fault on channel 21. -
Channel22BreakerFault
Breaker fault on channel 22. -
Channel23BreakerFault
Breaker fault on channel 23. -
Brownout
The input voltage was below the minimum voltage. -
CanWarning
A warning was raised by the device's CAN controller. -
CanBusOff
The device's CAN controller experienced a "Bus Off" event. -
HardwareFault
The hardware on the device has malfunctioned. -
FirmwareFault
The firmware on the device has malfunctioned. -
HasReset
The device has rebooted.
-
-
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.
-