diff --git a/src/main/java/frc/robot/subsystem/Drive.java b/src/main/java/frc/robot/subsystem/Drive.java index 1adcc9d..54f1d3f 100644 --- a/src/main/java/frc/robot/subsystem/Drive.java +++ b/src/main/java/frc/robot/subsystem/Drive.java @@ -25,7 +25,8 @@ public class Drive extends SubsystemBase { SwerveDrive swerveDrive; File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve"); - public AHRS gyroscope = new AHRS(); + public AHRS Gyro = new AHRS(); + public void drive(double x, double y, double zRotation){ swerveDrive.drive(new Translation2d(x*5, y*5), zRotation*4, true, false); } @@ -49,7 +50,7 @@ public class Drive extends SubsystemBase { }, this); } public void restgyroscope(){ - gyroscope.reset(); + Gyro.reset(); } public SwerveModulePosition[] distance(){ return swerveDrive.getModulePositions();