Updated swervelib

This commit is contained in:
thenetworkgrinch
2023-02-13 14:37:05 -06:00
parent f929f12e41
commit 6a40ec018e
151 changed files with 24641 additions and 5320 deletions

View File

@@ -0,0 +1,17 @@
package frc.robot.subsystems.swervedrive2.swervelib.parser.json.modules;
/**
* Inverted motor JSON parsed class. Used to access the JSON data.
*/
public class BoolMotorJson
{
/**
* Drive motor inversion state.
*/
public boolean drive;
/**
* Angle motor inversion state.
*/
public boolean angle;
}

View File

@@ -0,0 +1,19 @@
package frc.robot.subsystems.swervedrive2.swervelib.parser.json.modules;
/**
* Location JSON parsed class. Used to access the JSON data. Module locations, in inches, as distances to the center of
* the robot. Positive x is torwards the robot front, and * +y is torwards robot left.
*/
public class LocationJson
{
/**
* Location of the swerve module in inches from the center of the robot horizontally.
*/
public double x;
/**
* Location of the swerve module in inches from the center of the robot vertically.
*/
public double y;
}