prevent SP3 parser from mis-identifying unknown constellations

pull/98/head
bert hubert 2020-02-12 13:08:10 +01:00
parent 572e8ef006
commit 0f7cb5143d
1 changed files with 4 additions and 2 deletions

6
sp3.cc
View File

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