Class SwerveDriveJson
- java.lang.Object
-
- frc.robot.subsystems.swervedrive2.swervelib.parser.json.SwerveDriveJson
-
public class SwerveDriveJson extends Object
SwerveDriveJSON parsed class. Used to access parsed data from the swervedrive.json file.
-
-
Field Summary
Fields Modifier and Type Field Description DeviceJsonimuRobot IMU used to determine heading of the robot.booleaninvertedIMUInvert the IMU of the robot.doublemaxSpeedMaximum robot speed in feet per second.String[]modulesModule JSONs in order clockwise order starting from front left.doubleoptimalVoltageOptimal voltage to compensate to and base feedforward calculations off of.
-
Constructor Summary
Constructors Constructor Description SwerveDriveJson()
-
-
-
Field Detail
-
maxSpeed
public double maxSpeed
Maximum robot speed in feet per second.
-
optimalVoltage
public double optimalVoltage
Optimal voltage to compensate to and base feedforward calculations off of.
-
imu
public DeviceJson imu
Robot IMU used to determine heading of the robot.
-
invertedIMU
public boolean invertedIMU
Invert the IMU of the robot.
-
modules
public String[] modules
Module JSONs in order clockwise order starting from front left.
-
-