error to driverstation

This commit is contained in:
Olivier Demers 2022-11-29 19:34:09 -05:00
parent 601189ab5d
commit 3ac1697bb4

View File

@ -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());
}
}