mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
gnss_checks: always run strict checks on ground
With the goal to never take off if the GNSS solution is not fullfilling the configured requirements still not stopping to use it in case it degrades mid air.
This commit is contained in:
parent
61c990c5ee
commit
f9cdd095b8
@ -49,6 +49,11 @@ bool GnssChecks::run(const gnssSample &gnss, uint64_t time_us)
|
||||
|
||||
bool passed = false;
|
||||
|
||||
// Run strict checks while not flying yet
|
||||
if (!_control_status.flags.in_air) {
|
||||
_initial_checks_passed = false;
|
||||
}
|
||||
|
||||
if (_initial_checks_passed) {
|
||||
if (runSimplifiedChecks(gnss)) {
|
||||
_time_last_pass_us = time_us;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user