Class AngleConversionFactorsJson

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

public class AngleConversionFactorsJson extends Object
Angle motor conversion factors composite JSON parse class.
  • Field Details

    • gearRatio

      public double gearRatio
      Gear ratio for the angle/steering/azimuth motor on the Swerve Module. Motor rotations to 1 wheel rotation.
    • factor

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