This commit is contained in:
EdwardFaucher 2022-12-10 14:54:00 -05:00
parent 92d35d19f8
commit 630cdc0069

View File

@ -31,7 +31,7 @@ public double getangle() {
return gyroscope.getAngle();
}
public void drive(double y, double x, double rot){
mecanum.driveCartesian(y, x, rot, 0);
mecanum.driveCartesian(y, x, rot, getangle());
}
public void resetgyro(){
try { gyroscope.reset(); } catch( Exception e) {DriverStation.reportError("bye bye", true); }