Skip the loop by using the auto_pilot variable inside the condition.
auto_pilot
Make sure to pick auto_pilot.