Changeset 366 in ntrip for trunk/BNC/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Jan 17, 2007, 4:17:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r341 r366 90 90 if (rr == 2) { 91 91 std::cerr << "No valid RINEX! All values are modulo 299792.458!\n"; 92 exit(1); 92 // exit(1); 93 93 } 94 94 … … 107 107 108 108 for (int jj = 0; jj < _Parser.numdatatypes; jj++) { 109 110 if ( !(_Parser.Data.dataflags[ii] & _Parser.dataflag[jj]) 111 || isnan(_Parser.Data.measdata[ii][_Parser.datapos[jj]]) 112 || isinf(_Parser.Data.measdata[ii][_Parser.datapos[jj]]) ) { 113 continue; 109 int v = 0; 110 int df = _Parser.dataflag[jj]; 111 int pos = _Parser.datapos[jj]; 112 if ( (_Parser.Data.dataflags[ii] & df) 113 && !isnan(_Parser.Data.measdata[ii][pos]) 114 && !isinf(_Parser.Data.measdata[ii][pos])) { 115 v = 1; 114 116 } 115 117 else { 118 df = _Parser.dataflag2[jj]; 119 pos = _Parser.datapos2[jj]; 120 if ( (_Parser.Data.dataflags[ii] & df) 121 && !isnan(_Parser.Data.measdata[ii][pos]) 122 && !isinf(_Parser.Data.measdata[ii][pos])) { 123 v = 1; 124 } 125 } 126 if(!v) 127 { continue; } 128 else 129 { 116 130 if (_Parser.dataflag[jj] & GNSSDF_C1DATA) { 117 131 obs->C1 = _Parser.Data.measdata[ii][_Parser.datapos[jj]]; 132 } 133 else if (_Parser.dataflag[jj] & GNSSDF_C2DATA) { 134 obs->C2 = _Parser.Data.measdata[ii][_Parser.datapos[jj]]; 118 135 } 119 136 else if (_Parser.dataflag[jj] & GNSSDF_P1DATA) { … … 123 140 obs->P2 = _Parser.Data.measdata[ii][_Parser.datapos[jj]]; 124 141 } 125 else if ( _Parser.dataflag[jj]& (GNSSDF_L1CDATA|GNSSDF_L1PDATA)) {126 obs->L1 = _Parser.Data.measdata[ii][ _Parser.datapos[jj]];142 else if (df & (GNSSDF_L1CDATA|GNSSDF_L1PDATA)) { 143 obs->L1 = _Parser.Data.measdata[ii][pos]; 127 144 obs->SNR1 = _Parser.Data.snrL1[ii]; 128 145 } 129 else if ( _Parser.dataflag[jj]& (GNSSDF_L2CDATA|GNSSDF_L2PDATA)) {130 obs->L2 = _Parser.Data.measdata[ii][ _Parser.datapos[jj]];146 else if (df & (GNSSDF_L2CDATA|GNSSDF_L2PDATA)) { 147 obs->L2 = _Parser.Data.measdata[ii][pos]; 131 148 obs->SNR2 = _Parser.Data.snrL2[ii]; 132 149 } 150 } 133 151 } 134 152 _obsList.push_back(obs);
Note:
See TracChangeset
for help on using the changeset viewer.