1
0
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:
Werner Backes 2012-06-30 21:18:12 +02:00
parent 94b610c882
commit 7a7b64c9cf

View File

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