mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-21 06:31:40 +00:00
Updated YAGSL to next-gen
This commit is contained in:
@@ -23,12 +23,13 @@ public class ControllerPropertiesJson
|
||||
* Create the {@link SwerveControllerConfiguration} based on parsed and given data.
|
||||
*
|
||||
* @param driveConfiguration {@link SwerveDriveConfiguration} parsed configuration.
|
||||
* @param maxSpeedMPS Maximum speed in meters per second for the angular acceleration of the robot.
|
||||
* @return {@link SwerveControllerConfiguration} object based on parsed data.
|
||||
*/
|
||||
public SwerveControllerConfiguration createControllerConfiguration(
|
||||
SwerveDriveConfiguration driveConfiguration)
|
||||
SwerveDriveConfiguration driveConfiguration, double maxSpeedMPS)
|
||||
{
|
||||
return new SwerveControllerConfiguration(
|
||||
driveConfiguration, heading, angleJoystickRadiusDeadband);
|
||||
driveConfiguration, heading, angleJoystickRadiusDeadband, maxSpeedMPS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user