Plane: add missionLoaded arming check fail for mis.len <= 1

This commit is contained in:
Tom Pittenger 2016-02-21 08:06:43 -08:00 committed by Andrew Tridgell
parent 4ff396dfa8
commit 881dabf048
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,13 @@ bool AP_Arming_Plane::pre_arm_checks(bool report)
ret = false;
}
if (plane.control_mode == AUTO && plane.mission.num_commands() <= 1) {
if (report) {
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "PreArm: No mission loaded");
}
ret = false;
}
return ret;
}