* 7) Checksum
*/
gchar *token;
- guint i;
+ guint i,si;
+ gint satforfix[12];
+
vprintf("%s(): %s\n", __PRETTY_FUNCTION__, sentence);
#define DELIM ","
_gps.satinuse = 0;
for (i = 0; i < 12; i++) {
+ gint fprn;
token = strsep(&sentence, DELIM);
if (token && *token)
- _gps.satforfix[_gps.satinuse++] = atoi(token);
+ fprn=atoi(token);
+ else
+ fprn=-1;
+ satforfix[i]=fprn;
+ _gps.sat[i].fix=FALSE;
+ }
+
+ for (i=0;i<12;i++)
+ for (si=0;si<12;si++) {
+ if (_gps.sat[i].prn==satforfix[si])
+ _gps.sat[i].fix=TRUE;
}
/* PDOP */