mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Report SVs even if sat position is unknown. This way, received
satellites are reported early during cold start which gives better feedback to the user.
This commit is contained in:
parent
94b610c882
commit
7a7b64c9cf
@ -285,8 +285,7 @@ void parse_ubx_nav_svinfo (UBX_NAV_SVINFO *svinfo)
|
||||
|
||||
svdata.SatsInView = 0;
|
||||
for (chan = 0; chan < svinfo->numCh; chan++) {
|
||||
if ((svinfo->sv[chan].elev > 0) && // some unhealthy SV report negative elevation
|
||||
(svdata.SatsInView < GPSSATELLITES_PRN_NUMELEM)) {
|
||||
if (svdata.SatsInView < GPSSATELLITES_PRN_NUMELEM) {
|
||||
svdata.Azimuth[svdata.SatsInView] = (float)svinfo->sv[chan].azim;
|
||||
svdata.Elevation[svdata.SatsInView] = (float)svinfo->sv[chan].elev;
|
||||
svdata.PRN[svdata.SatsInView] = svinfo->sv[chan].svid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user