From b1f3443f56b5861c35ac30a1a06578cdddf1f767 Mon Sep 17 00:00:00 2001 From: EdwardFaucher Date: Tue, 29 Nov 2022 19:49:18 -0500 Subject: [PATCH] hfcgcjnm --- src/main/java/frc/robot/subsystems/BasePilotable.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/subsystems/BasePilotable.java b/src/main/java/frc/robot/subsystems/BasePilotable.java index 093c083..f10d034 100644 --- a/src/main/java/frc/robot/subsystems/BasePilotable.java +++ b/src/main/java/frc/robot/subsystems/BasePilotable.java @@ -33,10 +33,9 @@ public void drive(double y, double x, double rot){ } public void resetgyro(){ try { - gyroscope.zeroYaw(); - } catch( Exception e) { - e.printStackTrace(); - } + gyroscope.reset(); + } + } /** Creates a new BasePilotable. */