Changeset 6030 in ntrip for trunk/BNC/src/PPP/pppSatObs.cpp
- Timestamp:
- Aug 21, 2014, 11:34:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r6029 r6030 377 377 if (PPP_CLIENT->antex()) { 378 378 bool found; 379 _model._antPco1 = PPP_CLIENT->antex()->rcvCorr(station->antName(), _model._eleSat, found); 380 _model._antPco2 = _model._antPco1; 379 double pco = PPP_CLIENT->antex()->rcvCorr(station->antName(), _model._eleSat, found); 380 for (unsigned ii = 0; ii < t_frequency::max; ii++) { 381 _model._antPCO[ii] = pco; 382 } 381 383 } 382 384 … … 389 391 _model._windUp = station->windUp(_time, _prn, rSat); 390 392 391 // Code (and Phase)Biases392 // --------------------- --393 // Code and Phase Biases 394 // --------------------- 393 395 const t_satBias* satBias = PPP_CLIENT->obsPool()->satBias(_prn); 394 396 if (satBias) { 395 397 for (unsigned ii = 0; ii < satBias->_bias.size(); ii++) { 396 398 const t_frqBias& bias = satBias->_bias[ii]; 397 if (_validObs1 && _validObs1->_rnxType2ch == bias._rnxType2ch) { 398 _validObs1->_biasJumpCounter = satBias->_jumpCount; 399 if (bias._codeValid) { 400 _model._biasC1 = bias._code; 401 } 402 if (bias._phaseValid) { 403 _model._biasL1 = bias._phase; 404 } 405 } 406 if (_validObs2 && _validObs2->_rnxType2ch == bias._rnxType2ch) { 407 _validObs2->_biasJumpCounter = satBias->_jumpCount; 408 if (bias._codeValid) { 409 _model._biasC2 = bias._code; 410 } 411 if (bias._phaseValid) { 412 _model._biasL2 = bias._phase; 399 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 400 const t_frqObs* obs = _obs[iFreq]; 401 if (obs && obs->_rnxType2ch == bias._rnxType2ch) { 402 _model._codeBias[iFreq] = bias._code; 403 _model._phaseBias[iFreq] = bias._phase; 413 404 } 414 405 } … … 440 431 LOG.setf(ios::fixed); 441 432 LOG << "MODEL for Satellite " << _prn.toString() << endl 442 << "RHO: " << setw(12) << setprecision(3) << _model._rho << endl 443 << "ELE: " << setw(12) << setprecision(3) << _model._eleSat * 180.0 / M_PI << endl 444 << "AZI: " << setw(12) << setprecision(3) << _model._azSat * 180.0 / M_PI << endl 445 << "SATCLK: " << setw(12) << setprecision(3) << _model._satClkM << endl 446 << "RECCLK: " << setw(12) << setprecision(3) << _model._recClkM << endl 447 << "SAGNAC: " << setw(12) << setprecision(3) << _model._sagnac << endl 448 << "ANTECC: " << setw(12) << setprecision(3) << _model._antEcc << endl 449 << "PCO1: " << setw(12) << setprecision(3) << _model._antPco1 << endl 450 << "PCO2: " << setw(12) << setprecision(3) << _model._antPco2 << endl 451 << "TROPO: " << setw(12) << setprecision(3) << _model._tropo << endl 452 << "WINDUP: " << setw(12) << setprecision(3) << _model._windUp << endl 453 << "BIASC1: " << setw(12) << setprecision(3) << _model._biasC1 << endl 454 << "BIASC2: " << setw(12) << setprecision(3) << _model._biasC2 << endl 455 << "BIASL1: " << setw(12) << setprecision(3) << _model._biasL1 << endl 456 << "BIASL2: " << setw(12) << setprecision(3) << _model._biasL2 << endl 457 << "TIDES: " << setw(12) << setprecision(3) << _model._tide << endl; 458 459 //// beg test 460 LOG << "PCO L3: " << setw(12) << setprecision(3) 461 << lc(t_lc::lIF, _model._antPco1, _model._antPco2, 0.0, 0.0) << endl; 462 463 LOG << "WIND L3:" << setw(12) << setprecision(3) 464 << lc(t_lc::lIF, _model._windUp * t_CST::c / _f1, 465 _model._windUp * t_CST::c / _f2, 0.0, 0.0) << endl; 466 433 << "RHO: " << setw(12) << setprecision(3) << _model._rho << endl 434 << "ELE: " << setw(12) << setprecision(3) << _model._eleSat * 180.0 / M_PI << endl 435 << "AZI: " << setw(12) << setprecision(3) << _model._azSat * 180.0 / M_PI << endl 436 << "SATCLK: " << setw(12) << setprecision(3) << _model._satClkM << endl 437 << "RECCLK: " << setw(12) << setprecision(3) << _model._recClkM << endl 438 << "SAGNAC: " << setw(12) << setprecision(3) << _model._sagnac << endl 439 << "ANTECC: " << setw(12) << setprecision(3) << _model._antEcc << endl 440 << "TROPO: " << setw(12) << setprecision(3) << _model._tropo << endl 441 << "WINDUP: " << setw(12) << setprecision(3) << _model._windUp << endl 442 << "TIDES: " << setw(12) << setprecision(3) << _model._tide << endl; 443 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 444 if (_obs[iFreq]) { 445 LOG << "PCO: " << t_frequency::toString(t_frequency::type(iFreq)) << setw(12) << setprecision(3) << _model._antPCO[iFreq] << endl 446 << "BIAS CODE: " << t_frequency::toString(t_frequency::type(iFreq)) << setw(12) << setprecision(3) << _model._codeBias[iFreq] << endl 447 << "BIAS PHASE: " << t_frequency::toString(t_frequency::type(iFreq)) << setw(12) << setprecision(3) << _model._phaseBias[iFreq] << endl; 448 } 449 } 467 450 LOG << "OBS-CMP P3: " << _prn.toString() << " " 468 451 << setw(12) << setprecision(3) << obsValue(t_lc::cIF) << " " … … 479 462 << setw(12) << setprecision(3) << cmpValue(t_lc::MW) << " " 480 463 << setw(12) << setprecision(3) << obsValue(t_lc::MW) - cmpValue(t_lc::MW) << endl; 481 //// end test482 464 } 483 465
Note:
See TracChangeset
for help on using the changeset viewer.