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:
commit
b9281e3e5e
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue