Skip to content

Commit

Permalink
prevent SP3 parser from mis-identifying unknown constellations
Browse files Browse the repository at this point in the history
  • Loading branch information
ahupowerdns committed Feb 12, 2020
1 parent 572e8ef commit 0f7cb51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sp3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ bool SP3Reader::get(SP3Entry& entry)
if(!num) {
if(token[1]=='G')
entry.gnss = 0;
if(token[1]=='E')
else if(token[1]=='E')
entry.gnss = 2;
if(token[1]=='C')
else if(token[1]=='C')
entry.gnss = 3;
else
continue;
entry.sv = atoi(token.c_str()+2);
}
double val = atof(token.c_str());
Expand Down

0 comments on commit 0f7cb51

Please sign in to comment.