Class SwerveDriveJson

java.lang.Object
swervelib.parser.json.SwerveDriveJson

public class SwerveDriveJson extends Object
SwerveDrive JSON parsed class. Used to access parsed data from the swervedrive.json file.
  • Field Details

    • gyro

      public DeviceJson gyro
      Robot Gyroscope used to determine the heading of the robot.
    • gyroAxis

      public String gyroAxis
      Gyro rotation axis used to determine what orientation the robots heading is.
    • gyroInvert

      public boolean gyroInvert
      Invert the Gyroscope heading of the robot.
    • modules

      public String[] modules
      Module JSONs in order clockwise order starting from front left.
  • Constructor Details

    • SwerveDriveJson

      public SwerveDriveJson()