Class DeviceJson

java.lang.Object
swervelib.parser.json.DeviceJson

public class DeviceJson extends Object
Device JSON parsed class. Used to access the JSON data.
  • Field Details

    • canIdWarning

      private final Alert canIdWarning
      An Alert for if the CAN ID is greater than 40.
    • i2cLockupWarning

      private final Alert i2cLockupWarning
      An Alert for if there is an I2C lockup issue on the roboRIO.
    • serialCommsIssueWarning

      private final Alert serialCommsIssueWarning
      NavX serial comm issue.
    • type

      public String type
      The device type, e.g. pigeon/pigeon2/sparkmax/talonfx/navx
    • id

      public int id
      The CAN ID or pin ID of the device.
    • canbus

      public String canbus
      The CAN bus name which the device resides on if using CAN.
  • Constructor Details

    • DeviceJson

      public DeviceJson()
  • Method Details