mirror of https://github.com/ArduPilot/ardupilot
Plane: add missionLoaded arming check fail for mis.len <= 1
This commit is contained in:
parent
4ff396dfa8
commit
881dabf048
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue