added check for vision tracking to avoid interference from arm
This commit is contained in:
parent
702df28cb2
commit
5c4b376047
@ -15,8 +15,10 @@ public class AlignHorizontal extends CommandBase {
|
||||
return false;
|
||||
}
|
||||
protected void execute() {
|
||||
if(mainArm.getDegrees() >=45){
|
||||
driveBase.rotateAngle(error);
|
||||
}
|
||||
}
|
||||
protected void end() {
|
||||
driveBase.getGyroController().disable();
|
||||
driveBase.setDriveEnabled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user