error to driverstation
This commit is contained in:
parent
601189ab5d
commit
3ac1697bb4
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
package frc.robot.commands;
|
package frc.robot.commands;
|
||||||
|
|
||||||
|
import edu.wpi.first.wpilibj.DriverStation;
|
||||||
import edu.wpi.first.wpilibj2.command.CommandBase;
|
import edu.wpi.first.wpilibj2.command.CommandBase;
|
||||||
import frc.robot.subsystems.BasePilotable;
|
import frc.robot.subsystems.BasePilotable;
|
||||||
|
|
||||||
@ -22,7 +23,7 @@ public class ResetGyro extends CommandBase {
|
|||||||
try {
|
try {
|
||||||
basePilotable.resetgyro();
|
basePilotable.resetgyro();
|
||||||
} catch( Exception e) {
|
} catch( Exception e) {
|
||||||
e.printStackTrace();
|
DriverStation.reportError("Samuel", e.getStackTrace());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user