mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
commander: global position validity respect local position xy_valid
This commit is contained in:
@@ -4077,7 +4077,7 @@ void Commander::estimator_check()
|
|||||||
} else {
|
} else {
|
||||||
if (!_skip_pos_accuracy_check) {
|
if (!_skip_pos_accuracy_check) {
|
||||||
// use global position message to determine validity
|
// use global position message to determine validity
|
||||||
check_posvel_validity(true, gpos.eph, _eph_threshold_adj, gpos.timestamp, &_last_gpos_fail_time_us,
|
check_posvel_validity(lpos.xy_valid, gpos.eph, _eph_threshold_adj, gpos.timestamp, &_last_gpos_fail_time_us,
|
||||||
&_gpos_probation_time_us, &_status_flags.condition_global_position_valid, &_status_changed);
|
&_gpos_probation_time_us, &_status_flags.condition_global_position_valid, &_status_changed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user