Changeset 1044 in ntrip for trunk/BNC/RTCM/RTCM2.cpp
- Timestamp:
- Aug 19, 2008, 11:36:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r1029 r1044 945 945 cph_L1.resize(0); // Carrier phase [m] 946 946 cph_L2.resize(0); // Carrier phase [m] 947 slip_L1.resize(0); // Slip counter 948 slip_L2.resize(0); // Slip counter 947 949 948 950 availability.reset(); // Message status flags … … 1005 1007 bool isGPS,isCAcode,isL1,isOth; 1006 1008 int NSat,idx; 1007 int sid,prn ;1009 int sid,prn,slip_cnt; 1008 1010 double t,rng,cph; 1009 1011 … … 1114 1116 1115 1117 prn = (isGPS? sid : sid+200 ); 1116 1118 1117 1119 // Carrier phase measurement (mod 2^23 [cy]; sign matched to range) 1118 1120 cph = -P.getBits(iSat*48+40,32)/256.0; 1121 1122 // Slip counter 1123 slip_cnt = P.getUnsignedBits(iSat*48+35,5); 1119 1124 1120 1125 // Is this a new PRN? … … 1132 1137 cph_L1.push_back(0.0); 1133 1138 cph_L2.push_back(0.0); 1139 slip_L1.push_back(-1); 1140 slip_L2.push_back(-1); 1134 1141 }; 1135 1142 1136 1143 // Store measurement 1137 1144 if (isL1) { 1138 cph_L1[idx] = cph; 1145 cph_L1 [idx] = cph; 1146 slip_L1[idx] = slip_cnt; 1139 1147 } 1140 1148 else { 1141 cph_L2[idx] = cph; 1149 cph_L2 [idx] = cph; 1150 slip_L2[idx] = slip_cnt; 1142 1151 }; 1143 1152 … … 1251 1260 cph_L1.push_back(0.0); 1252 1261 cph_L2.push_back(0.0); 1262 slip_L1.push_back(-1); 1263 slip_L2.push_back(-1); 1253 1264 }; 1254 1265 … … 1339 1350 1340 1351 }; // End of namespace rtcm2 1352 1353 1354
Note:
See TracChangeset
for help on using the changeset viewer.