diff --git a/src/main/java/frc/robot/commands/ResetGyro.java b/src/main/java/frc/robot/commands/ResetGyro.java index fc17b51..d9a4050 100644 --- a/src/main/java/frc/robot/commands/ResetGyro.java +++ b/src/main/java/frc/robot/commands/ResetGyro.java @@ -19,7 +19,12 @@ public class ResetGyro extends CommandBase { // Called when the command is initially scheduled. @Override public void initialize() { - basePilotable.resetgyro(); + try { + basePilotable.resetgyro(); + } catch( Exception e) { + e.printStackTrace(); + } + } // Called every time the scheduler runs while the command is scheduled.