mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:58:53 +08:00
add home pos check into global pos check
This commit is contained in:
@@ -103,6 +103,14 @@ bool PreFlightCheck::preArmCheck(orb_advert_t *mavlink_log_pub, const vehicle_st
|
|||||||
|
|
||||||
prearm_ok = false;
|
prearm_ok = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!status_flags.condition_home_position_valid) {
|
||||||
|
if (prearm_ok) {
|
||||||
|
if (report_fail) { mavlink_log_critical(mavlink_log_pub, "Arming denied! Home position invalid"); }
|
||||||
|
}
|
||||||
|
|
||||||
|
prearm_ok = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// safety button
|
// safety button
|
||||||
|
|||||||
Reference in New Issue
Block a user