try-catch reset gyro
This commit is contained in:
parent
9d9aff784b
commit
66dd400d0d
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user