Package swervelib.parser.json.modules
Class DriveGearingJson
java.lang.Object
swervelib.parser.json.modules.DriveGearingJson
Drive motor composite JSON parse class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the gear ratio and wheel diameter of this object to another.
-
Field Details
-
gearRatio
public double gearRatioReduction ratio for the motor to the wheel. X where "X:1" -
diameter
public double diameterDiameter of the wheel in inches.
-
-
Constructor Details
-
DriveGearingJson
public DriveGearingJson()
-
-
Method Details
-
equals
Compare the gear ratio and wheel diameter of this object to another.- Parameters:
o- OtherDriveGearingJsonto compare against.- Returns:
- True if the gear ratios and diameters are equal.
-