Changeset 222 in ntrip for trunk/BNC/RTCM3/rtcm3.cpp
- Timestamp:
- Oct 7, 2006, 11:57:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/rtcm3.cpp
r131 r222 16 16 * -----------------------------------------------------------------------*/ 17 17 18 #include <iostream> 18 19 #include <math.h> 19 20 … … 57 58 58 59 if (rr == 2) { 59 cerr << "No valid RINEX! All values are modulo 299792.458!\n";60 std::cerr << "No valid RINEX! All values are modulo 299792.458!\n"; 60 61 exit(1); 61 62 } … … 63 64 for (int ii = 0; ii < _Parser.Data.numsats; ii++) { 64 65 Observation* obs = new Observation(); 65 66 //// obs->statID =67 //// obs->cumuLossOfCont =68 69 66 obs->SVPRN = _Parser.Data.satellites[ii]; 70 67 obs->GPSWeek = _Parser.Data.week; 71 obs->GPSWeeks = (int) (_Parser.Data.timeofweek / 1000.0); 72 obs->sec = fmod(_Parser.Data.timeofweek / 1000.0, 3600.0); 68 obs->GPSWeeks = _Parser.Data.timeofweek / 1000.0; 73 69 74 70 for (int jj = 0; jj < _Parser.numdatatypes; jj++) { … … 82 78 if (_Parser.dataflag[jj] & GNSSDF_C1DATA) { 83 79 obs->C1 = _Parser.Data.measdata[ii][_Parser.datapos[jj]]; 84 obs->pCodeIndicator = 0;85 80 } 86 81 else if (_Parser.dataflag[jj] & GNSSDF_P1DATA) { 87 obs->C1 = _Parser.Data.measdata[ii][_Parser.datapos[jj]]; 88 obs->pCodeIndicator = 1; 82 obs->P1 = _Parser.Data.measdata[ii][_Parser.datapos[jj]]; 89 83 } 90 84 else if (_Parser.dataflag[jj] & GNSSDF_P2DATA) { … … 100 94 } 101 95 } 102 m_lObsList.push_back(obs);96 _obsList.push_back(obs); 103 97 } 104 98 }
Note:
See TracChangeset
for help on using the changeset viewer.