added check for vision tracking to avoid interference from arm
This commit is contained in:
parent
702df28cb2
commit
5c4b376047
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user