Class DriveConversionFactorsJson

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

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

    • gearRatio

      public double gearRatio
      Gear ratio for the drive motor rotations to turn the wheel 1 complete rotation.
    • diameter

      public double diameter
      Diameter of the wheel in inches.
    • factor

      public double factor
      Calculated 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.