Changer id swerve

This commit is contained in:
samuel desharnais
2023-10-31 19:57:56 -04:00
parent 1dc4b31f4f
commit 633ebb0ac9
8 changed files with 28 additions and 14 deletions

View File

@ -22,7 +22,7 @@ public class RobotContainer {
// drive.drive(manette.getLeftX(), manette.getLeftY(), manette.getRightX());
//},drive));
drive.setDefaultCommand(new RunCommand(()->{
drive.drive(joystick1.getX(), -joystick1.getY(), joystick1.getZ());
drive.drive(joystick1.getX(), -joystick1.getY(), -joystick1.getZ());
},drive));
}

View File

@ -18,7 +18,7 @@ public class Drive extends SubsystemBase {
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
public void drive(double x, double y, double zRotation){
swerveDrive.drive(new Translation2d(x, y), zRotation, true, true);
swerveDrive.drive(new Translation2d(x, y), zRotation, true, false);
}