Package swervelib.parser.json.modules
Class DriveConversionFactorsJson
java.lang.Object
swervelib.parser.json.modules.DriveConversionFactorsJson
Drive motor composite JSON parse class.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
gearRatio
public double gearRatioGear ratio for the drive motor rotations to turn the wheel 1 complete rotation. -
diameter
public double diameterDiameter of the wheel in inches. -
factor
public double factorCalculated conversion factor.
-
-
Constructor Details
-
DriveConversionFactorsJson
public DriveConversionFactorsJson()
-
-
Method Details
-
calculate
public double calculate()Calculate the drive conversion factor.- Returns:
- Drive conversion factor, if factor isn't set.
-