Changeset 6809 in ntrip for trunk/BNC/src/ephemeris.cpp


Ignore:
Timestamp:
Apr 30, 2015, 10:37:30 PM (9 years ago)
Author:
stuerze
Message:

I/NAV - F/NAV issue (hopefully:) solved in another way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ephemeris.cpp

    r6803 r6809  
    2323  _orbCorr    = 0;
    2424  _clkCorr    = 0;
    25   _flags      = 0;
    2625}
    2726
     
    798797//////////////////////////////////////////////////////////////////////////////
    799798t_ephGal::t_ephGal(float rnxVersion, const QStringList& lines) {
    800 
     799  int       year, month, day, hour, min;
     800  double    sec;
     801  QString   prnStr;
    801802  const int nLines = 8;
    802 
    803803  if (lines.size() != nLines) {
    804804    _checkState = bad;
    805805    return;
    806806  }
     807  _flags = 0;
    807808
    808809  // RINEX Format
     
    826827      QTextStream in(line.left(pos[1]).toAscii());
    827828
    828       int    year, month, day, hour, min;
    829       double sec;
    830      
    831       QString prnStr;
    832829      in >> prnStr >> year >> month >> day >> hour >> min >> sec;
    833       if (prnStr.at(0) == 'E') {
    834         _prn.set('E', prnStr.mid(1).toInt());
    835       }
    836       else {
    837         _prn.set('E', prnStr.toInt());
    838       }
    839 
    840830      if      (year <  80) {
    841831        year += 2000;
     
    936926        // Bit 7-8
    937927        _E5bHS = double((int(SVhealth) >> 7) & 0x3);
     928
     929        if (prnStr.at(0) == 'E') {
     930          _prn.set('E', prnStr.mid(1,2).toInt(), _flags);
     931        }
     932        else {
     933          _prn.set('E', prnStr.mid(1,2).toInt(), _flags);
     934        }
    938935      }
    939936    }
     
    954951  _receptDateTime = currentDateAndTimeGPS();
    955952
    956   _prn.set('E', ee->satellite);
     953  _flags    = ee->flags;
     954  _prn.set('E', ee->satellite, _flags);
    957955
    958956  _TOC.set(ee->Week, ee->TOC);
     
    994992
    995993  _TOT      = 0.9999e9;
    996 
    997   _flags    = ee->flags;
    998994}
    999995
Note: See TracChangeset for help on using the changeset viewer.