mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 01:13:35 +08:00
ekf2 fix GPS fix_type comparison
- fixes Coverity CID 306253
This commit is contained in:
committed by
Paul Riseborough
parent
18c46f562a
commit
92ff391c97
@@ -1004,7 +1004,7 @@ void Ekf2::run()
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// handle case where the blended states cannot be updated
|
// 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 1 has the best fix status so use that
|
||||||
_gps_select_index = 0;
|
_gps_select_index = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user