Class PhysicalPropertiesJson

java.lang.Object
swervelib.parser.json.PhysicalPropertiesJson

public class PhysicalPropertiesJson extends Object
SwerveModulePhysicalCharacteristics parsed data. Used to configure the SwerveModule.
  • Field Details

    • conversionFactor

      @Deprecated(since="2025", forRemoval=true) public MotorConfigDouble conversionFactor
      Deprecated, for removal: This API element is subject to removal in a future version.
      DEPRECATED! Use conversionFactors instead.
    • friction

      public MotorConfigDouble friction
      Minimum voltage to spin the module or wheel.
    • steerRotationalInertia

      public double steerRotationalInertia
      Steer rotational inertia in KilogramMetersSquare.
    • robotMass

      public double robotMass
      Robot mass in lb (pounds)
    • conversionFactors

      public ConversionFactorsJson conversionFactors
      Conversion Factors composition. Auto-calculates the conversion factors.
    • currentLimit

      public MotorConfigInt currentLimit
      The current limit in AMPs to apply to the motors.
    • rampRate

      public MotorConfigDouble rampRate
      The minimum number of seconds to take for the motor to go from 0 to full throttle.
    • wheelGripCoefficientOfFriction

      public double wheelGripCoefficientOfFriction
      The grip tape coefficient of friction on carpet. Used to calculate the practical maximum acceleration.
    • optimalVoltage

      public double optimalVoltage
      The voltage to use for the smart motor voltage compensation, default is 12.
  • Constructor Details

    • PhysicalPropertiesJson

      public PhysicalPropertiesJson()
  • Method Details