Class CANCoderStickyFaults

java.lang.Object
com.ctre.phoenix.sensors.CANCoderStickyFaults

public class CANCoderStickyFaults extends Object
Sticky Faults available to CANCoder (Currently has none)
  • Field Details

    • HardwareFault

      public boolean HardwareFault
      Device detects hardware failure
    • APIError

      public boolean APIError
      API error detected. Make sure API and firmware versions are compatible.
    • UnderVoltage

      public boolean UnderVoltage
      Device is under 6.5V
    • ResetDuringEn

      public boolean ResetDuringEn
      Device was powered-on or reset while robot is enabled. Check your breakers and wiring.
    • MagnetTooWeak

      public boolean MagnetTooWeak
      Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being used
  • Constructor Details

  • Method Details

    • hasAnyFault

      public boolean hasAnyFault()
      Returns:
      true if any faults are tripped
    • toBitfield

      public int toBitfield()
      Returns:
      Current fault list as a bit field
    • update

      public void update(int bits)
      Updates current sticky fault list with specified bit field of faults
      Parameters:
      bits - bit field of sticky faults to update with