mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ekf2 fix GPS fix_type comparison
- fixes Coverity CID 306253
This commit is contained in:
parent
18c46f562a
commit
92ff391c97
@ -1004,7 +1004,7 @@ void Ekf2::run()
|
||||
|
||||
} else {
|
||||
// handle case where the blended states cannot be updated
|
||||
if (_gps_state[0].fix_type > _gps_state[0].fix_type) {
|
||||
if (_gps_state[0].fix_type > _gps_state[1].fix_type) {
|
||||
// GPS 1 has the best fix status so use that
|
||||
_gps_select_index = 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user