ekf2 fix GPS fix_type comparison

- fixes Coverity CID 306253
This commit is contained in:
Daniel Agar 2018-08-01 14:19:51 -04:00 committed by Paul Riseborough
parent 18c46f562a
commit 92ff391c97

View File

@ -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;