Changeset 8234 in ntrip for trunk/BNC/src/RTCM
- Timestamp:
- Jan 5, 2018, 10:52:16 AM (7 years ago)
- Location:
- trunk/BNC/src/RTCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/RTCM/RTCM2Decoder.cpp ¶
r8204 r8234 202 202 if (_PP.ID() == 3) { 203 203 if (_msg03.validMsg) { 204 _antList.push_back(t_antInfo()); 205 206 this->getStaCrd(_antList.back().xx, _antList.back().yy, 207 _antList.back().zz); 208 209 _antList.back().type = t_antInfo::APC; 204 _antList.push_back(t_antRefPoint()); 205 206 this->getStaCrd(_antList.back().xx, _antList.back().yy, _antList.back().zz); 207 208 _antList.back().type = t_antRefPoint::APC; 210 209 _antList.back().message = _PP.ID(); 211 210 } 212 211 } else if (_PP.ID() == 23) { 213 if (_msg23.validMsg && !_antType.contains(_msg23.antType.c_str())) { 214 _antType.push_back(_msg23.antType.c_str()); 212 if (_msg23.validMsg) { 213 int antlen = strlen(_msg23.antType.c_str()); 214 int serlen = strlen(_msg23.antSN.c_str()); 215 if ((antlen) && 216 (_antType.empty() || strncmp(_antType.back().descriptor, _msg23.antType.c_str(), antlen) != 0)) { 217 _antType.push_back(t_antInfo()); 218 memcpy(_antType.back().descriptor, _msg23.antType.c_str(), antlen); 219 _antType.back().descriptor[antlen] = 0; 220 if (serlen) { 221 memcpy(_antType.back().serialnumber, _msg23.antSN.c_str(), serlen); 222 _antType.back().serialnumber[serlen] = 0; 223 } 224 } 215 225 } 216 226 } else if (_PP.ID() == 24) { 217 227 if (_msg24.validMsg) { 218 _antList.push_back(t_ant Info());228 _antList.push_back(t_antRefPoint()); 219 229 220 230 _antList.back().xx = _msg24.x; … … 225 235 _antList.back().height = _msg24.h; 226 236 227 _antList.back().type = t_ant Info::ARP;237 _antList.back().type = t_antRefPoint::ARP; 228 238 _antList.back().message = _PP.ID(); 229 239 } -
TabularUnified trunk/BNC/src/RTCM/RTCM2Decoder.h ¶
r6443 r8234 29 29 #include <vector> 30 30 #include <list> 31 #include <stdio.h> 31 32 32 33 #include "GPSDecoder.h" … … 71 72 rtcm2::RTCM2_24 _msg24; 72 73 rtcm2::RTCM2_2021 _msg2021; 73 bncEphUser _ephUser; 74 bncEphUser _ephUser; 74 75 }; 75 76
Note:
See TracChangeset
for help on using the changeset viewer.