Changeset 782 in ntrip


Ignore:
Timestamp:
Apr 8, 2008, 10:51:17 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r781 r782  
    7272  gpsEph* ep = new gpsEph;
    7373
     74  bool flagGlonass = false;
     75
    7476  const int NUMLINES = 8;
    7577
     
    8183
    8284    QByteArray line = _socket->readLine();
     85
     86    if (flagGlonass) {
     87      if (ii == 4) {
     88        delete ep;
     89        return;
     90      }
     91      else {
     92        continue;
     93      }
     94    }
     95
    8396    QTextStream in(line);
    8497
    8598    if (ii == 1) {
     99      in >> ep->prn;
     100
     101      if (ep->prn.indexOf('R') != -1) {
     102        flagGlonass = true;
     103        continue;
     104      }
     105
    86106      int     year, month, day, hour, minute, second;
    87       in >> ep->prn >> year >> month >> day >> hour >> minute >> second
     107      in >> year >> month >> day >> hour >> minute >> second
    88108         >> ep->clock_bias >> ep->clock_drift >> ep->clock_driftrate;
    89109     
     
    124144  }
    125145
     146      cout << "before emit: " << ep->prn.toAscii().data() << " "
     147           << ep->GPSweek << " " << ep->TOC << endl;
     148
    126149  emit(newEph(ep));
    127150}
Note: See TracChangeset for help on using the changeset viewer.