This commit is contained in:
Antoine PerreaultE 2024-02-24 15:22:57 -05:00
parent ef19d453f4
commit eacabafab2

View File

@ -25,12 +25,12 @@ 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*3, y*3), zRotation*3, true, false);
swerveDrive.drive(new Translation2d(x*5, y*5), zRotation*3, true, false);
}
public Drive() {
try {
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(3);
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(5);
} catch (IOException e) {
e.printStackTrace();
}