Changeset 3661 in ntrip for trunk


Ignore:
Timestamp:
Feb 3, 2012, 6:14:41 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

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

    r3660 r3661  
    793793//////////////////////////////////////////////////////////////////////////////
    794794t_ephGPS::t_ephGPS(float rnxVersion, const QStringList& lines) {
    795   cout << "t_ephGPS: " << rnxVersion << " " << lines.size() << endl;
    796795  if (lines.size() != 8) {
    797796    _ok = false;
     
    800799  QRegExp rex;
    801800  if (rnxVersion < 3.0) {
    802     rex.setPattern("(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{5})(.{19})(.{19})(.{19})");
    803     cout << lines[0].toAscii().data() << endl;
     801    rex.setPattern("(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2})(.{5})(.{19})(.{19})(.{19})\\s*");
    804802    if (rex.exactMatch(lines[0])) {
    805803      QStringList hlp = rex.capturedTexts();
    806       _prn = 'G' + QString("%1").arg(hlp[0], 2, QChar('0'));
    807       int    year  = hlp[1].toInt();
    808       int    month = hlp[2].toInt();
    809       int    day   = hlp[3].toInt();
    810       int    hour  = hlp[4].toInt();
    811       int    min   = hlp[5].toInt();
    812       double sec   = hlp[6].toDouble();
     804      _prn = QString("G%1").arg(hlp[1], 2, QChar('0'));
     805      int    year  = hlp[2].toInt();
     806      int    month = hlp[3].toInt();
     807      int    day   = hlp[4].toInt();
     808      int    hour  = hlp[5].toInt();
     809      int    min   = hlp[6].toInt();
     810      double sec   = hlp[7].toDouble();
    813811      cout << _prn.toAscii().data() << " " << year << " " << month << " "
    814            << day << " " << hour << " " << min << " " << sec << endl;
     812           << day << " " << hour << " " << min << " " << sec << "<<<" << endl;
    815813    }
    816814  }
     815
     816  _ok = true;
    817817}
    818818
  • trunk/BNC/bncpostprocess.cpp

    r3646 r3661  
    106106  cout << "corrFile: " << _opt->corrFileName.toAscii().data() << endl;
    107107
     108  t_eph* eph;
     109  while (_rnxNavFile->getNextEph(eph) == success) {
     110  }
     111
    108112  int MAXI = 5;
    109113  for (int ii = 1; ii < MAXI; ii++) {
Note: See TracChangeset for help on using the changeset viewer.