2023-02-13 17:21:24 -06:00
|
|
|
package swervelib.parser.json.modules;
|
2023-02-13 14:37:05 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Location JSON parsed class. Used to access the JSON data. Module locations, in inches, as distances to the center of
|
2023-03-09 21:48:47 -06:00
|
|
|
* the robot. +x is towards the robot front, and +y is towards robot left.
|
2023-02-13 14:37:05 -06:00
|
|
|
*/
|
|
|
|
|
public class LocationJson
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Location of the swerve module in inches from the center of the robot horizontally.
|
|
|
|
|
*/
|
2023-03-09 21:48:47 -06:00
|
|
|
public double front = 0, x = 0;
|
2023-02-13 14:37:05 -06:00
|
|
|
/**
|
|
|
|
|
* Location of the swerve module in inches from the center of the robot vertically.
|
|
|
|
|
*/
|
2023-03-09 21:48:47 -06:00
|
|
|
public double left = 0, y = 0;
|
2023-02-13 14:37:05 -06:00
|
|
|
}
|