Changeset 5576 in ntrip
- Timestamp:
- Nov 25, 2013, 5:47:57 PM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/GPSS/hassDecoder.cpp
r5564 r5576 141 141 } 142 142 143 int SSRProviderID = 0;144 int SSRSolutionID = 0;145 int SSRIOD = 0;146 147 143 corrLine.sprintf("%d %d %d %.1f %s" 148 144 " %3d" 149 145 " %8.3f %8.3f %8.3f %8.3f" 150 146 " %10.5f %10.5f %10.5f %10.5f" 151 " %10.5f" 152 " %5d %2d %2d", 147 " %10.5f", 153 148 messageType, updateInterval, coTime.gpsw(), _GPSweeks, 154 149 prn.toAscii().data(), IOD, 155 150 dClk, rao[0], rao[1], rao[2], 156 0.0, dotRao[0], dotRao[1], dotRao[2], 0.0, 157 SSRProviderID, SSRSolutionID, SSRIOD); 151 0.0, dotRao[0], dotRao[1], dotRao[2], 0.0); 158 152 159 153 RTCM3coDecoder::reopen(_fileNameSkl, _fileName, _out); -
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r5563 r5576 82 82 memset(&_co, 0, sizeof(_co)); 83 83 memset(&_bias, 0, sizeof(_bias)); 84 85 _providerID[0] = -1; 86 _providerID[1] = -1; 87 _providerID[2] = -1; 84 88 } 85 89 … … 220 224 } 221 225 226 checkProviderID(); 227 222 228 QStringList asciiLines = corrsToASCIIlines(GPSweek, _GPSweeks, 223 229 _co, &_bias); … … 309 315 " %8.3f %8.3f %8.3f %8.3f" 310 316 " %10.5f %10.5f %10.5f %10.5f" 311 " %10.5f" 312 " %5d %2d %2d", 317 " %10.5f", 313 318 co.Sat[ii].IOD, 314 319 co.Sat[ii].Clock.DeltaA0, … … 320 325 co.Sat[ii].Orbit.DotDeltaAlongTrack, 321 326 co.Sat[ii].Orbit.DotDeltaCrossTrack, 322 co.Sat[ii].Clock.DeltaA2, 323 co.SSRProviderID, co.SSRSolutionID, co.SSRIOD); 327 co.Sat[ii].Clock.DeltaA2); 324 328 retLines << linePart+line; 325 329 } … … 332 336 line.sprintf(" %3d" 333 337 " %8.3f %8.3f %8.3f" 334 " %10.5f %10.5f %10.5f" 335 " %5d %2d %2d", 338 " %10.5f %10.5f %10.5f", 336 339 co.Sat[ii].IOD, 337 340 co.Sat[ii].Orbit.DeltaRadial, … … 340 343 co.Sat[ii].Orbit.DotDeltaRadial, 341 344 co.Sat[ii].Orbit.DotDeltaAlongTrack, 342 co.Sat[ii].Orbit.DotDeltaCrossTrack, 343 co.SSRProviderID, co.SSRSolutionID, co.SSRIOD); 345 co.Sat[ii].Orbit.DotDeltaCrossTrack); 344 346 retLines << linePart+line; 345 347 } … … 416 418 return retLines; 417 419 } 420 421 // 422 //////////////////////////////////////////////////////////////////////////// 423 void RTCM3coDecoder::checkProviderID() { 424 425 if (_co.SSRProviderID == 0 && _co.SSRSolutionID == 0 && _co.SSRIOD == 0) { 426 return; 427 } 428 429 int newProviderID[3]; 430 newProviderID[0] = _co.SSRProviderID; 431 newProviderID[1] = _co.SSRSolutionID; 432 newProviderID[2] = _co.SSRIOD; 433 434 bool alreadySet = false; 435 bool different = false; 436 437 for (unsigned ii = 0; ii < 3; ii++) { 438 if (_providerID[ii] != -1) { 439 alreadySet = true; 440 } 441 if (_providerID[ii] != newProviderID[ii]) { 442 different = true; 443 } 444 _providerID[ii] = newProviderID[ii]; 445 } 446 447 if (alreadySet && different) { 448 emit newMessage("RTCM3coDecoder: Provider Changed\n", true); 449 } 450 } -
trunk/BNC/src/RTCM3/RTCM3coDecoder.h
r5120 r5576 55 55 private: 56 56 void printLine(const QString& line, int GPSweek, double GPSweeks); 57 void checkProviderID(); 57 58 std::ofstream* _out; 58 59 QString _staID; … … 63 64 ClockOrbit _co; 64 65 Bias _bias; 66 int _providerID[3]; 65 67 }; 66 68 -
trunk/BNC/src/bncephuser.cpp
r5565 r5576 217 217 >> dClk >> rao[0] >> rao[1] >> rao[2] 218 218 >> dotDClk >> dotRao[0] >> dotRao[1] >> dotRao[2] 219 >> dotDotDClk >> streamID[0] >> streamID[1] >> streamID[2];219 >> dotDotDClk; 220 220 221 221 dClk /= t_CST::c; … … 232 232 in >> iod 233 233 >> rao[0] >> rao[1] >> rao[2] 234 >> dotRao[0] >> dotRao[1] >> dotRao[2] 235 >> streamID[0] >> streamID[1] >> streamID[2]; 234 >> dotRao[0] >> dotRao[1] >> dotRao[2]; 236 235 237 236 tRao.set(GPSweek, GPSweeks); -
trunk/BNC/src/bncephuser.h
r5567 r5576 51 51 dotRao = 0.0; 52 52 eph = 0; 53 streamID[0] = -1;54 streamID[1] = -1;55 streamID[2] = -1;56 53 } 57 54 … … 85 82 ColumnVector dotRao; 86 83 const t_eph* eph; 87 int streamID[3];88 84 }; 89 85 -
trunk/BNC/src/bncpppclient.cpp
r5570 r5576 70 70 _model = new bncModel(this); 71 71 72 _streamID[0] = -1;73 _streamID[1] = -1;74 _streamID[2] = -1;75 76 72 if (connectSlots) { 77 73 connect(this, SIGNAL(newMessage(QByteArray,bool)), … … 299 295 } 300 296 cc->readLine(line); 301 checkProviderID(cc);302 297 _corr_tt = cc->tClk; 303 298 } … … 533 528 } 534 529 535 //536 ////////////////////////////////////////////////////////////////////////////537 void bncPPPclient::checkProviderID(const t_corr* corr) {538 539 bool alreadySet = false;540 bool different = false;541 542 for (unsigned ii = 0; ii < 3; ii++) {543 if (_streamID[ii] != -1) {544 alreadySet = true;545 }546 if (corr->streamID[ii] != -1) {547 if (_streamID[ii] != corr->streamID[ii]) {548 different = true;549 }550 _streamID[ii] = corr->streamID[ii];551 }552 }553 554 if (alreadySet && different) {555 delete _model;556 _model = new bncModel(this);557 }558 } -
trunk/BNC/src/bncpppclient.h
r5569 r5576 158 158 void processFrontEpoch(); 159 159 t_irc cmpToT(t_satData* satData); 160 void checkProviderID(const t_corr* corr);161 160 162 161 t_pppOpt* _opt; … … 169 168 bncModel* _model; 170 169 QMap<QString, slipInfo> _slips; 171 int _streamID[3];172 170 }; 173 171 -
trunk/BNC/src/combination/bnccomb.cpp
r5565 r5576 709 709 int messageType = COTYPE_GPSCOMBINED; 710 710 int updateInt = 0; 711 int SSRProviderID = 0;712 int SSRSolutionID = 0;713 int SSRIOD = 0;714 711 line.sprintf("%d %d %d %.1f %s" 715 712 " %3d" 716 713 " %8.3f %8.3f %8.3f %8.3f" 717 714 " %10.5f %10.5f %10.5f %10.5f" 718 " %10.5f %5d %2d %2dINTERNAL",715 " %10.5f INTERNAL", 719 716 messageType, updateInt, _resTime.gpsw(), _resTime.gpssec(), 720 717 corr->prn.toAscii().data(), … … 728 725 corr->dotRao[1], 729 726 corr->dotRao[2], 730 corr->dotDotDClk * t_CST::c, 731 SSRProviderID, SSRSolutionID, SSRIOD); 727 corr->dotDotDClk * t_CST::c); 732 728 corrLines << line; 733 729
Note:
See TracChangeset
for help on using the changeset viewer.