mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-20 06:31:39 +00:00
Updated swervelib
This commit is contained in:
30
swervelib/parser/json/SwerveDriveJson.java
Normal file
30
swervelib/parser/json/SwerveDriveJson.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package frc.robot.subsystems.swervedrive2.swervelib.parser.json;
|
||||
|
||||
/**
|
||||
* {@link frc.robot.subsystems.swervedrive2.swervelib.SwerveDrive} JSON parsed class. Used to access parsed data from
|
||||
* the swervedrive.json file.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user