Files
YAGSL/swervelib/parser/json/SwerveDriveJson.java

30 lines
681 B
Java
Raw Normal View History

2023-02-13 17:21:24 -06:00
package swervelib.parser.json;
2023-02-13 14:37:05 -06:00
/**
2023-02-13 17:21:24 -06:00
* {@link swervelib.SwerveDrive} JSON parsed class. Used to access parsed data from the swervedrive.json file.
2023-02-13 14:37:05 -06:00
*/
public class SwerveDriveJson
{
/**
* Maximum robot speed in feet per second.
*/
public double maxSpeed;
/**
* Optimal voltage to compensate to and base feedforward calculations off of.
*/
public double optimalVoltage;
/**
* Robot IMU used to determine heading of the robot.
*/
public DeviceJson imu;
/**
* Invert the IMU of the robot.
*/
public boolean invertedIMU;
/**
* Module JSONs in order clockwise order starting from front left.
*/
public String[] modules;
}