Changeset 3661 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Feb 3, 2012, 6:14:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/RTCM3/ephemeris.cpp ¶
r3660 r3661 793 793 ////////////////////////////////////////////////////////////////////////////// 794 794 t_ephGPS::t_ephGPS(float rnxVersion, const QStringList& lines) { 795 cout << "t_ephGPS: " << rnxVersion << " " << lines.size() << endl;796 795 if (lines.size() != 8) { 797 796 _ok = false; … … 800 799 QRegExp rex; 801 800 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*"); 804 802 if (rex.exactMatch(lines[0])) { 805 803 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(); 813 811 cout << _prn.toAscii().data() << " " << year << " " << month << " " 814 << day << " " << hour << " " << min << " " << sec << endl; 812 << day << " " << hour << " " << min << " " << sec << "<<<" << endl; 815 813 } 816 814 } 815 816 _ok = true; 817 817 } 818 818
Note:
See TracChangeset
for help on using the changeset viewer.