Changeset 1105 in ntrip
- Timestamp:
- Sep 8, 2008, 6:24:37 PM (16 years ago)
- Location:
- trunk/BNC/RTCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r1044 r1105 50 50 // 2008/03/10 AHA Corrected buffer length check in getPacket() 51 51 // 2008/03/11 AHA isGPS-flag in RTCM2_Obs is now set to false on clear() 52 // 2008/03/13 AHA Added checks for data consistency in extraction routines 52 // 2008/03/14 AHA Added checks for data consistency in extraction routines 53 // 2008/09/01 AHA Harmonization with newest BNC version 53 54 // 54 55 // (c) DLR/GSOC … … 756 757 //------------------------------------------------------------------------------ 757 758 759 // Constructor 760 RTCM2_03::RTCM2_03(){ 761 validMsg = false; 762 x = 0.0; 763 y = 0.0; 764 z=0.0; 765 }; 766 758 767 void RTCM2_03::extract(const RTCM2packet& P) { 759 768 … … 1116 1125 1117 1126 prn = (isGPS? sid : sid+200 ); 1118 1127 1119 1128 // Carrier phase measurement (mod 2^23 [cy]; sign matched to range) 1120 1129 cph = -P.getBits(iSat*48+40,32)/256.0; … … 1137 1146 cph_L1.push_back(0.0); 1138 1147 cph_L2.push_back(0.0); 1139 1140 1148 slip_L1.push_back(-1); 1149 slip_L2.push_back(-1); 1141 1150 }; 1142 1151 1143 1152 // Store measurement 1144 1153 if (isL1) { 1145 cph_L1 1146 1154 cph_L1[idx] = cph; 1155 slip_L1[idx] = slip_cnt; 1147 1156 } 1148 1157 else { 1149 cph_L2 1150 1158 cph_L2[idx] = cph; 1159 slip_L2[idx] = slip_cnt; 1151 1160 }; 1152 1161 … … 1260 1269 cph_L1.push_back(0.0); 1261 1270 cph_L2.push_back(0.0); 1262 1263 slip_L2.push_back(-1);1271 slip_L1.push_back(-1); 1272 slip_L2.push_back(-1); 1264 1273 }; 1265 1274 … … 1350 1359 1351 1360 }; // End of namespace rtcm2 1352 1353 1354 -
trunk/BNC/RTCM/RTCM2.h
r1044 r1105 29 29 // 2006/11/25 OMO Revised check for presence of GLONASS data 30 30 // 2008/03/07 AHA Removed unnecessary failure flag 31 // 2008/09/01 AHA Harmonization with newest BNC version 31 32 // 32 33 // (c) DLR/GSOC … … 201 202 202 203 class RTCM2_03 { 203 public: 204 205 RTCM2_03() : validMsg(false), x(0.0), y(0.0), z(0.0) { } 206 207 void extract(const RTCM2packet& P); 208 209 public: 210 bool validMsg; // Validity flag 211 double x,y,z; // Station coordinates 204 205 public: 206 // Constructor 207 RTCM2_03(); 208 209 void extract(const RTCM2packet& P); 210 211 public: 212 213 bool validMsg; // Validity flag 214 double x,y,z; // Station coordinates 215 212 216 }; 213 217
Note:
See TracChangeset
for help on using the changeset viewer.