Package swervelib.parser.json.modules
Class ConversionFactorsJson
java.lang.Object
swervelib.parser.json.modules.ConversionFactorsJson
Conversion Factors parsed JSON class
-
Field Summary
FieldsModifier and TypeFieldDescriptionAngle motor conversion factors composition.Drive motor conversion factors composition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the conversion factors are set for the angle motor.boolean
Check if the conversion factors are set for the drive motor.boolean
works()
Check if the conversion factor can be found.
-
Field Details
-
drive
Drive motor conversion factors composition. -
angle
Angle motor conversion factors composition.
-
-
Constructor Details
-
ConversionFactorsJson
public ConversionFactorsJson()
-
-
Method Details
-
isDriveEmpty
public boolean isDriveEmpty()Check if the conversion factors are set for the drive motor.- Returns:
- Empty
-
isAngleEmpty
public boolean isAngleEmpty()Check if the conversion factors are set for the angle motor.- Returns:
- Empty
-
works
public boolean works()Check if the conversion factor can be found.- Returns:
- If the conversion factors can be found.
-