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,7 +15,9 @@ public class AlignHorizontal extends CommandBase {
return false; return false;
} }
protected void execute() { protected void execute() {
driveBase.rotateAngle(error); if(mainArm.getDegrees() >=45){
driveBase.rotateAngle(error);
}
} }
protected void end() { protected void end() {
driveBase.getGyroController().disable(); driveBase.getGyroController().disable();