Package swervelib.parser.json
Class PhysicalPropertiesJson
java.lang.Object
swervelib.parser.json.PhysicalPropertiesJson
SwerveModulePhysicalCharacteristics
parsed data. Used to configure the
SwerveModule.-
Field Summary
Modifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Conversion Factors composition.The current limit in AMPs to apply to the motors.Minimum voltage to spin the module or wheel.double
The voltage to use for the smart motor voltage compensation, default is 12.The minimum number of seconds to take for the motor to go from 0 to full throttle.double
Robot mass in lb (pounds)double
Steer rotational inertia in KilogramMetersSquare.double
The grip tape coefficient of friction on carpet. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate the physical characteristics based off the parsed data.
-
Field Details
-
conversionFactor
Deprecated, for removal: This API element is subject to removal in a future version.DEPRECATED! UseconversionFactors
instead. -
friction
Minimum voltage to spin the module or wheel. -
steerRotationalInertia
public double steerRotationalInertiaSteer rotational inertia in KilogramMetersSquare. -
robotMass
public double robotMassRobot mass in lb (pounds) -
conversionFactors
Conversion Factors composition. Auto-calculates the conversion factors. -
currentLimit
The current limit in AMPs to apply to the motors. -
rampRate
The minimum number of seconds to take for the motor to go from 0 to full throttle. -
wheelGripCoefficientOfFriction
public double wheelGripCoefficientOfFrictionThe grip tape coefficient of friction on carpet. Used to calculate the practical maximum acceleration. -
optimalVoltage
public double optimalVoltageThe voltage to use for the smart motor voltage compensation, default is 12.
-
-
Constructor Details
-
PhysicalPropertiesJson
public PhysicalPropertiesJson()
-
-
Method Details
-
createPhysicalProperties
Create the physical characteristics based off the parsed data.- Returns:
SwerveModulePhysicalCharacteristics
based on parsed data.
-