Package swervelib.parser.json
Class ModuleJson
java.lang.Object
swervelib.parser.json.ModuleJson
SwerveModule JSON parsed class. Used to access the JSON data.-
Field Summary
FieldsModifier and TypeFieldDescriptionAbsolute encoder device configuration.doubleReduction ratio for the absolute encoder to the motor.booleanAbsolute encoder inversion state.doubleAbsolute encoder offset from 0 in degrees.Angle motor device configuration.Drive motor device configuration.Conversion Factors composition.Defines which motors are inverted.The location of the swerve module from the center of the robot in inches. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
drive
Drive motor device configuration. -
angle
Angle motor device configuration. -
gearing
Conversion Factors composition. Auto-calculates the conversion factors. -
absoluteEncoder
Absolute encoder device configuration. -
inverted
Defines which motors are inverted. -
absoluteEncoderOffset
public double absoluteEncoderOffsetAbsolute encoder offset from 0 in degrees. -
absoluteEncoderInverted
public boolean absoluteEncoderInvertedAbsolute encoder inversion state. -
absoluteEncoderGearRatio
public double absoluteEncoderGearRatioReduction ratio for the absolute encoder to the motor. X where "X:1" -
location
The location of the swerve module from the center of the robot in inches.
-
-
Constructor Details
-
ModuleJson
public ModuleJson()
-