diff --git a/src/org/usfirst/frc/team2059/robot/commands/vision/AlignHorizontal.java b/src/org/usfirst/frc/team2059/robot/commands/vision/AlignHorizontal.java index 9f833b4..6f81d4e 100644 --- a/src/org/usfirst/frc/team2059/robot/commands/vision/AlignHorizontal.java +++ b/src/org/usfirst/frc/team2059/robot/commands/vision/AlignHorizontal.java @@ -15,7 +15,9 @@ public class AlignHorizontal extends CommandBase { return false; } protected void execute() { - driveBase.rotateAngle(error); + if(mainArm.getDegrees() >=45){ + driveBase.rotateAngle(error); + } } protected void end() { driveBase.getGyroController().disable();