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.
|
// Called when the command is initially scheduled.
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
|
try {
|
||||||
basePilotable.resetgyro();
|
basePilotable.resetgyro();
|
||||||
|
} catch( Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called every time the scheduler runs while the command is scheduled.
|
// Called every time the scheduler runs while the command is scheduled.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user