Package swervelib.parser.json.modules
Class AngleConversionFactorsJson
java.lang.Object
swervelib.parser.json.modules.AngleConversionFactorsJson
Angle motor conversion factors composite JSON parse class.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
gearRatio
public double gearRatioGear ratio for the angle/steering/azimuth motor on the Swerve Module. Motor rotations to 1 wheel rotation. -
factor
public double factorCalculated or given conversion factor.
-
-
Constructor Details
-
AngleConversionFactorsJson
public AngleConversionFactorsJson()
-
-
Method Details
-
calculate
public double calculate()Calculate the drive conversion factor.- Returns:
- Drive conversion factor, if factor isn't set.
-