mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
commander: don't run preflightCheck during calibration on reconnect
This commit is contained in:
committed by
Lorenz Meier
parent
10410fc868
commit
3545ba97ca
@@ -3564,7 +3564,7 @@ void Commander::data_link_check()
|
|||||||
status.data_link_lost = false;
|
status.data_link_lost = false;
|
||||||
_status_changed = true;
|
_status_changed = true;
|
||||||
|
|
||||||
if (!armed.armed) {
|
if (!armed.armed && !status_flags.condition_calibration_enabled) {
|
||||||
// make sure to report preflight check failures to a connecting GCS
|
// make sure to report preflight check failures to a connecting GCS
|
||||||
PreFlightCheck::preflightCheck(&mavlink_log_pub, status, status_flags,
|
PreFlightCheck::preflightCheck(&mavlink_log_pub, status, status_flags,
|
||||||
_arm_requirements.global_position, true, true, hrt_elapsed_time(&_boot_timestamp));
|
_arm_requirements.global_position, true, true, hrt_elapsed_time(&_boot_timestamp));
|
||||||
|
|||||||
Reference in New Issue
Block a user