Class ControllerPropertiesJson
- java.lang.Object
-
- frc.robot.subsystems.swervedrive2.swervelib.parser.json.ControllerPropertiesJson
-
public class ControllerPropertiesJson extends Object
SwerveControllerparsed class. Used to access the JSON data.
-
-
Field Summary
Fields Modifier and Type Field Description doubleangleJoystickRadiusDeadbandThe minimum radius of the angle control joystick to allow for heading adjustment of the robot.PIDFConfigheadingThe PID used to control the robot heading.
-
Constructor Summary
Constructors Constructor Description ControllerPropertiesJson()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwerveControllerConfigurationcreateControllerConfiguration(SwerveDriveConfiguration driveConfiguration)Create theSwerveControllerConfigurationbased on parsed and given data.
-
-
-
Field Detail
-
angleJoystickRadiusDeadband
public double angleJoystickRadiusDeadband
The minimum radius of the angle control joystick to allow for heading adjustment of the robot.
-
heading
public PIDFConfig heading
The PID used to control the robot heading.
-
-
Method Detail
-
createControllerConfiguration
public SwerveControllerConfiguration createControllerConfiguration(SwerveDriveConfiguration driveConfiguration)
Create theSwerveControllerConfigurationbased on parsed and given data.- Parameters:
driveConfiguration-SwerveDriveConfigurationparsed configuration.- Returns:
SwerveControllerConfigurationobject based on parsed data.
-
-