New name for module locations, some fixes

This commit is contained in:
thenetworkgrinch
2023-03-09 21:48:47 -06:00
parent ec958aecaa
commit ac920249ac
119 changed files with 344 additions and 267 deletions

View File

@@ -2,7 +2,7 @@ package 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.
* the robot. +x is towards the robot front, and +y is towards robot left.
*/
public class LocationJson
{
@@ -10,9 +10,9 @@ public class LocationJson
/**
* Location of the swerve module in inches from the center of the robot horizontally.
*/
public double x;
public double front = 0, x = 0;
/**
* Location of the swerve module in inches from the center of the robot vertically.
*/
public double y;
public double left = 0, y = 0;
}