Changeset 5157 in ntrip
- Timestamp:
- May 26, 2013, 11:24:09 AM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/bncmodel.cpp ¶
r5070 r5157 110 110 } 111 111 112 // Glonass Offset 113 // -------------- 114 else if (type == GLONASS_OFFSET) { 115 if (satData->prn[0] == 'R') { 116 return 1.0; 117 } 118 else { 119 return 0.0; 120 } 121 } 122 112 123 // Galileo Offset 113 124 // -------------- … … 228 239 _params.push_back(new bncParam(bncParam::TROPO, ++nextPar, "")); 229 240 } 241 if (_opt->useGlonass) { 242 _params.push_back(new bncParam(bncParam::GLONASS_OFFSET, ++nextPar, "")); 243 } 230 244 if (_opt->useGalileo) { 231 245 _params.push_back(new bncParam(bncParam::GALILEO_OFFSET, ++nextPar, "")); … … 246 260 _QQ(iPar,iPar) = _opt->sigTrp0 * _opt->sigTrp0; 247 261 pp->xx = lastTrp; 262 } 263 else if (pp->type == bncParam::GLONASS_OFFSET) { 264 _QQ(iPar,iPar) = _opt->sigGlonassOffset0 * _opt->sigGlonassOffset0; 248 265 } 249 266 else if (pp->type == bncParam::GALILEO_OFFSET) { … … 334 351 335 352 double offset = 0.0; 336 if (satData->prn[0] == 'E') { 353 if (satData->prn[0] == 'R') { 354 offset = Glonass_offset(); 355 } 356 else if (satData->prn[0] == 'E') { 337 357 offset = Galileo_offset(); 338 358 } … … 483 503 } 484 504 505 // Glonass Offset 506 // -------------- 507 else if (pp->type == bncParam::GLONASS_OFFSET) { 508 _QQ(iPar,iPar) += _opt->sigGlonassOffsetP * _opt->sigGlonassOffsetP; 509 } 510 485 511 // Galileo Offset 486 512 // -------------- … … 621 647 newPos->xnt[6] = aprTrp + par->xx; 622 648 } 649 else if (par->type == bncParam::GLONASS_OFFSET) { 650 strB << "\n offGlo = " << setw(10) << setprecision(3) << par->xx 651 << " +- " << setw(6) << setprecision(3) 652 << sqrt(_QQ(par->index,par->index)); 653 } 623 654 else if (par->type == bncParam::GALILEO_OFFSET) { 624 strB << "\n off set= " << setw(10) << setprecision(3) << par->xx655 strB << "\n offGal = " << setw(10) << setprecision(3) << par->xx 625 656 << " +- " << setw(6) << setprecision(3) 626 657 << sqrt(_QQ(par->index,par->index)); -
TabularUnified trunk/BNC/src/bncmodel.h ¶
r4278 r5157 41 41 class bncParam { 42 42 public: 43 enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK, TROPO, AMB_L3, GALILEO_OFFSET}; 43 enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK, TROPO, AMB_L3, 44 GLONASS_OFFSET, GALILEO_OFFSET}; 44 45 bncParam(parType typeIn, int indexIn, const QString& prn); 45 46 ~bncParam(); … … 70 71 bncParam* pp = _params[ii]; 71 72 if (pp->type == bncParam::TROPO) { 73 return pp->xx; 74 } 75 } 76 return 0.0; 77 } 78 double Glonass_offset() const { 79 for (int ii = 0; ii < _params.size(); ++ii) { 80 bncParam* pp = _params[ii]; 81 if (pp->type == bncParam::GLONASS_OFFSET) { 72 82 return pp->xx; 73 83 } -
TabularUnified trunk/BNC/src/pppopt.cpp ¶
r4278 r5157 107 107 if (!pppMode) corrSync = 0.0; 108 108 109 sigGlonassOffset0 = 1000.0; 110 sigGlonassOffsetP = 0.0; 109 111 sigGalileoOffset0 = 1000.0; 110 112 sigGalileoOffsetP = 0.0; -
TabularUnified trunk/BNC/src/pppopt.h ¶
r4278 r5157 63 63 bool useGlonass; 64 64 bool useGalileo; 65 double sigGlonassOffset0; 66 double sigGlonassOffsetP; 65 67 double sigGalileoOffset0; 66 68 double sigGalileoOffsetP;
Note:
See TracChangeset
for help on using the changeset viewer.