From e82e2b6041847311a082d72368b49c68b78dbf7c Mon Sep 17 00:00:00 2001 From: EdwardFaucher Date: Tue, 29 Nov 2022 19:00:03 -0500 Subject: [PATCH] fhmgjvn --- src/main/java/frc/robot/subsystems/BasePilotable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystems/BasePilotable.java b/src/main/java/frc/robot/subsystems/BasePilotable.java index 2921fda..59d8384 100644 --- a/src/main/java/frc/robot/subsystems/BasePilotable.java +++ b/src/main/java/frc/robot/subsystems/BasePilotable.java @@ -29,7 +29,7 @@ public double getangle() { return gyroscope.getAngle(); } public void drive(double y, double x, double rot){ - mecanum.driveCartesian(y, rot, x, 0); + mecanum.driveCartesian(y, rot, x, getangle()); } /** Creates a new BasePilotable. */ public BasePilotable() {