added check for vision tracking to avoid interference from arm

This commit is contained in:
Adam Long 2016-10-13 20:57:38 +00:00
parent 702df28cb2
commit 5c4b376047

View File

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