Class DeviceJson

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

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

    • type

      public String type
      The device type
    • id

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

      public int channel
      SmartIO Channel.
    • canbus

      public String canbus
      The CAN bus the device is on if using CAN: empty for can_s0, or the bus number, such as "1" for can_s1. CTRE devices also take a CANivore's name. See CANBuses.
  • Constructor Details

    • DeviceJson

      public DeviceJson()
  • Method Details