Update to swervelib 2024.5.0.0

This commit is contained in:
thenetworkgrinch
2024-07-29 15:14:25 -05:00
parent a64d1d3215
commit 89e4163951
120 changed files with 1420 additions and 439 deletions

View File

@@ -0,0 +1,37 @@
package swervelib.parser.json.modules;
/**
* Conversion Factors parsed JSON class
*/
public class ConversionFactorsJson
{
/**
* Drive motor conversion factors composition.
*/
public DriveConversionFactorsJson drive = new DriveConversionFactorsJson();
/**
* Angle motor conversion factors composition.
*/
public AngleConversionFactorsJson angle = new AngleConversionFactorsJson();
/**
* Check if the conversion factors are set for the drive motor.
*
* @return Empty
*/
public boolean isDriveEmpty()
{
return drive.factor == 0 && drive.diameter == 0 && drive.gearRatio == 0;
}
/**
* Check if the conversion factors are set for the angle motor.
*
* @return Empty
*/
public boolean isAngleEmpty()
{
return angle.factor == 0 && angle.gearRatio == 0;
}
}