Class DriveGearingJson

java.lang.Object
swervelib.parser.json.modules.DriveGearingJson

public class DriveGearingJson extends Object
Drive motor composite JSON parse class.
  • Field Details

    • gearRatio

      public double gearRatio
      Reduction ratio for the motor to the wheel. X where "X:1"
    • diameter

      public double diameter
      Diameter of the wheel in inches.
  • Constructor Details

    • DriveGearingJson

      public DriveGearingJson()
  • Method Details

    • equals

      public boolean equals(DriveGearingJson o)
      Compare the gear ratio and wheel diameter of this object to another.
      Parameters:
      o - Other DriveGearingJson to compare against.
      Returns:
      True if the gear ratios and diameters are equal.