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 Details

    • Channel0BreakerFault

      public final boolean Channel0BreakerFault
      Breaker fault on channel 0.
    • Channel1BreakerFault

      public final boolean Channel1BreakerFault
      Breaker fault on channel 1.
    • Channel2BreakerFault

      public final boolean Channel2BreakerFault
      Breaker fault on channel 2.
    • Channel3BreakerFault

      public final boolean Channel3BreakerFault
      Breaker fault on channel 3.
    • Channel4BreakerFault

      public final boolean Channel4BreakerFault
      Breaker fault on channel 4.
    • Channel5BreakerFault

      public final boolean Channel5BreakerFault
      Breaker fault on channel 5.
    • Channel6BreakerFault

      public final boolean Channel6BreakerFault
      Breaker fault on channel 6.
    • Channel7BreakerFault

      public final boolean Channel7BreakerFault
      Breaker fault on channel 7.
    • Channel8BreakerFault

      public final boolean Channel8BreakerFault
      Breaker fault on channel 8.
    • Channel9BreakerFault

      public final boolean Channel9BreakerFault
      Breaker fault on channel 9.
    • Channel10BreakerFault

      public final boolean Channel10BreakerFault
      Breaker fault on channel 10.
    • Channel11BreakerFault

      public final boolean Channel11BreakerFault
      Breaker fault on channel 11.
    • Channel12BreakerFault

      public final boolean Channel12BreakerFault
      Breaker fault on channel 12.
    • Channel13BreakerFault

      public final boolean Channel13BreakerFault
      Breaker fault on channel 13.
    • Channel14BreakerFault

      public final boolean Channel14BreakerFault
      Breaker fault on channel 14.
    • Channel15BreakerFault

      public final boolean Channel15BreakerFault
      Breaker fault on channel 15.
    • Channel16BreakerFault

      public final boolean Channel16BreakerFault
      Breaker fault on channel 16.
    • Channel17BreakerFault

      public final boolean Channel17BreakerFault
      Breaker fault on channel 17.
    • Channel18BreakerFault

      public final boolean Channel18BreakerFault
      Breaker fault on channel 18.
    • Channel19BreakerFault

      public final boolean Channel19BreakerFault
      Breaker fault on channel 19.
    • Channel20BreakerFault

      public final boolean Channel20BreakerFault
      Breaker fault on channel 20.
    • Channel21BreakerFault

      public final boolean Channel21BreakerFault
      Breaker fault on channel 21.
    • Channel22BreakerFault

      public final boolean Channel22BreakerFault
      Breaker fault on channel 22.
    • Channel23BreakerFault

      public final boolean Channel23BreakerFault
      Breaker fault on channel 23.
    • Brownout

      public final boolean Brownout
      The input voltage was below the minimum voltage.
    • CanWarning

      public final boolean CanWarning
      A warning was raised by the device's CAN controller.
    • CanBusOff

      public final boolean CanBusOff
      The device's CAN controller experienced a "Bus Off" event.
    • HardwareFault

      public final boolean HardwareFault
      The hardware on the device has malfunctioned.
    • FirmwareFault

      public final boolean FirmwareFault
      The firmware on the device has malfunctioned.
    • HasReset

      public final boolean HasReset
      The device has rebooted.
  • Constructor Details

  • Method Details

    • getBreakerFault

      public final boolean getBreakerFault(int channel)
      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.