Changeset 5157 in ntrip for trunk/BNC/src/bncmodel.cpp
- Timestamp:
- May 26, 2013, 11:24:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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));
Note:
See TracChangeset
for help on using the changeset viewer.