Skip to content

Commit

Permalink
Revert back to open-loop voltage drive requests
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryNessCTR committed Feb 12, 2024
1 parent 9856cc0 commit 6963b52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class RobotContainer {

private final SwerveRequest.FieldCentric drive = new SwerveRequest.FieldCentric()
.withDeadband(MaxSpeed * 0.1).withRotationalDeadband(MaxAngularRate * 0.1) // Add a 10% deadband
.withDriveRequestType(DriveRequestType.Velocity); // I want field-centric
.withDriveRequestType(DriveRequestType.OpenLoopVoltage); // I want field-centric
// driving in open loop
private final SwerveRequest.SwerveDriveBrake brake = new SwerveRequest.SwerveDriveBrake();
private final SwerveRequest.RobotCentric forwardStraight = new SwerveRequest.RobotCentric().withDriveRequestType(DriveRequestType.OpenLoopVoltage);
Expand Down

0 comments on commit 6963b52

Please sign in to comment.