From 3ac1697bb468832b2b5d14be4a2eb2415bc2cc15 Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Tue, 29 Nov 2022 19:34:09 -0500 Subject: [PATCH] error to driverstation --- src/main/java/frc/robot/commands/ResetGyro.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/commands/ResetGyro.java b/src/main/java/frc/robot/commands/ResetGyro.java index 3b6cee3..b209286 100644 --- a/src/main/java/frc/robot/commands/ResetGyro.java +++ b/src/main/java/frc/robot/commands/ResetGyro.java @@ -4,6 +4,7 @@ package frc.robot.commands; +import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.subsystems.BasePilotable; @@ -22,7 +23,7 @@ public class ResetGyro extends CommandBase { try { basePilotable.resetgyro(); } catch( Exception e) { - e.printStackTrace(); + DriverStation.reportError("Samuel", e.getStackTrace()); } }