PreFltCheck: do not force to report ekf2 failures on GCS connection

EKF2 has a grace period of 10 seconds after boot where it doesn't need
to warn the user while the sensors (especially GNSS) are still
converging.
A connection to a GCS shouldn't skip this grace period but
an arming request should.
This commit is contained in:
bresch
2021-09-08 11:18:35 +02:00
committed by Daniel Agar
parent 58ea97a699
commit aad11ecc65
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -3528,7 +3528,7 @@ void Commander::data_link_check()
if (!_armed.armed && !_status_flags.condition_calibration_enabled) {
// make sure to report preflight check failures to a connecting GCS
PreFlightCheck::preflightCheck(&_mavlink_log_pub, _status, _status_flags, true, true,
PreFlightCheck::preflightCheck(&_mavlink_log_pub, _status, _status_flags, true, false,
hrt_elapsed_time(&_boot_timestamp));
}
}