navigator: don't takeoff in loiter on ground
This fixes the following corner case: 1. Upload a mission. 2. Set mission mode. 3. Set loiter mode. 4. Arm. At this point it will shoot up and go to the takeoff waypoint even though we're not in mission but in loiter mode. The fix makes sure that the triplet is reset to invalid (and idle) in loiter mode if we're landed and disarmed. It will lead to the vehcle sit in idle on the ground until you issue a start mission (or takeoff) command.
Please register or sign in to comment