Package swervelib.parser.json
Class ControllerPropertiesJson
java.lang.Object
swervelib.parser.json.ControllerPropertiesJson
SwerveController parsed class. Used to access the JSON data.-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe minimum radius of the angle control joystick to allow for heading adjustment of the robot.The PID used to control the robot heading. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateControllerConfiguration(SwerveDriveConfiguration driveConfiguration, double maxSpeedMPS) Create theSwerveControllerConfigurationbased on parsed and given data.
-
Field Details
-
angleJoystickRadiusDeadband
public double angleJoystickRadiusDeadbandThe minimum radius of the angle control joystick to allow for heading adjustment of the robot. -
heading
The PID used to control the robot heading.
-
-
Constructor Details
-
ControllerPropertiesJson
public ControllerPropertiesJson()
-
-
Method Details
-
createControllerConfiguration
public SwerveControllerConfiguration createControllerConfiguration(SwerveDriveConfiguration driveConfiguration, double maxSpeedMPS) Create theSwerveControllerConfigurationbased on parsed and given data.- Parameters:
driveConfiguration-SwerveDriveConfigurationparsed configuration.maxSpeedMPS- Maximum speed in meters per second for the angular acceleration of the robot.- Returns:
SwerveControllerConfigurationobject based on parsed data.
-