Package swervelib.parser.json
Class ControllerPropertiesJson
java.lang.Object
swervelib.parser.json.ControllerPropertiesJson
SwerveController
parsed class. Used to access the JSON data.-
Field Summary
Modifier and TypeFieldDescriptiondouble
The 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
-
Method Summary
Modifier and TypeMethodDescriptioncreateControllerConfiguration
(SwerveDriveConfiguration driveConfiguration, double maxSpeedMPS) Create theSwerveControllerConfiguration
based 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 theSwerveControllerConfiguration
based on parsed and given data.- Parameters:
driveConfiguration
-SwerveDriveConfiguration
parsed configuration.maxSpeedMPS
- Maximum speed in meters per second for the angular acceleration of the robot.- Returns:
SwerveControllerConfiguration
object based on parsed data.
-