1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 00:35:34 +03:00

Merge pull request #3519 from teckel12/te_tweak_frsky_hdop_range

Fix FrSky HDOP range
This commit is contained in:
Alberto García Hierro 2018-07-08 13:25:14 +01:00 committed by GitHub
commit b9281e3e5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,8 @@ uint16_t frskyGetGPSState(void)
// ones and tens columns (# of satellites 0 - 99)
tmpi += constrain(gpsSol.numSat, 0, 99);
// hundreds column (satellite accuracy HDOP: 0 = worst [HDOP 6.5], 9 = best [HDOP 2.0])
tmpi += (9 - constrain((gpsSol.hdop - 151) / 50, 0, 9)) * 100;
// hundreds column (satellite accuracy HDOP: 0 = worst [HDOP > 5.5], 9 = best [HDOP <= 1.0])
tmpi += (9 - constrain((gpsSol.hdop - 51) / 50, 0, 9)) * 100;
// thousands column (GPS fix status)
if (STATE(GPS_FIX))