This commit is contained in:
Antoine PerreaultE 2025-03-07 09:06:40 -05:00
commit bb9870732c

View File

@ -71,7 +71,7 @@ public class RobotContainer {
/* Setting up bindings for necessary control of the swerve drive platform */ /* Setting up bindings for necessary control of the swerve drive platform */
private final SwerveRequest.RobotCentric drive = new SwerveRequest.RobotCentric() private final SwerveRequest.RobotCentric drive = new SwerveRequest.RobotCentric()
.withDeadband(MaxSpeed * 0.1).withRotationalDeadband(MaxAngularRate * 0.1) // Add a 10% deadband .withDeadband(MaxSpeed * 0.1).withRotationalDeadband(MaxAngularRate * 0.1) // Add a 10% deadband
.withDriveRequestType(DriveRequestType.OpenLoopVoltage .withDriveRequestType(DriveRequestType.Velocity
); // Use open-loop control for drive motors ); // Use open-loop control for drive motors
private final Telemetry logger = new Telemetry(MaxSpeed); private final Telemetry logger = new Telemetry(MaxSpeed);