- Timestamp:
- Apr 8, 2008, 10:51:17 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnseph.cpp
r781 r782 72 72 gpsEph* ep = new gpsEph; 73 73 74 bool flagGlonass = false; 75 74 76 const int NUMLINES = 8; 75 77 … … 81 83 82 84 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 83 96 QTextStream in(line); 84 97 85 98 if (ii == 1) { 99 in >> ep->prn; 100 101 if (ep->prn.indexOf('R') != -1) { 102 flagGlonass = true; 103 continue; 104 } 105 86 106 int year, month, day, hour, minute, second; 87 in >> ep->prn >>year >> month >> day >> hour >> minute >> second107 in >> year >> month >> day >> hour >> minute >> second 88 108 >> ep->clock_bias >> ep->clock_drift >> ep->clock_driftrate; 89 109 … … 124 144 } 125 145 146 cout << "before emit: " << ep->prn.toAscii().data() << " " 147 << ep->GPSweek << " " << ep->TOC << endl; 148 126 149 emit(newEph(ep)); 127 150 }
Note:
See TracChangeset
for help on using the changeset viewer.