[hal, wpilib] Expose sticky hardware and firmware faults in PDH and PH (#6900)

This commit is contained in:
Ryan Blue
2024-08-02 22:13:43 -04:00
committed by GitHub
parent 01c47e5bcc
commit 7938d79648
8 changed files with 38 additions and 2 deletions

View File

@@ -226,6 +226,10 @@ class PneumaticHub : public PneumaticsBase {
uint32_t CanWarning : 1;
/** The device's CAN controller experienced a "Bus Off" event. */
uint32_t CanBusOff : 1;
/** The hardware on the device has malfunctioned. */
uint32_t HardwareFault : 1;
/** The firmware on the device has malfunctioned. */
uint32_t FirmwareFault : 1;
/** The device has rebooted. */
uint32_t HasReset : 1;
};

View File

@@ -311,6 +311,10 @@ class PowerDistribution : public wpi::Sendable,
uint32_t CanWarning : 1;
/** The device's CAN controller experienced a "Bus Off" event. */
uint32_t CanBusOff : 1;
/** The hardware on the device has malfunctioned. */
uint32_t HardwareFault : 1;
/** The firmware on the device has malfunctioned. */
uint32_t FirmwareFault : 1;
/** The device has rebooted. */
uint32_t HasReset : 1;