Skip the loop by using the autoPilotOn variable inside the condition.

Make sure to pick autopilotOn.