mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-20 06:31:39 +00:00
New name for module locations, some fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user