Changeset 7253 in ntrip for trunk/BNC/src
- Timestamp:
- Aug 26, 2015, 4:48:17 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r7252 r7253 61 61 // Select pseudoranges and phase observations 62 62 // ------------------------------------------ 63 const string preferredAttrib = "CWPX _";63 const string preferredAttrib = "CWPXI_"; 64 64 65 65 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { … … 396 396 // ----------------- 397 397 const t_vTec* vTec = PPP_CLIENT->obsPool()->vTec(); 398 if (vTec && (!isValid(t_lc::cIF) || !isValid(t_lc::lIF))) { 399 double stec = station->stec(vTec, _signalPropagationTime, rSat); 400 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 401 t_frequency::type frqType = static_cast<t_frequency::type>(iFreq); 402 _model._ionoCodeDelay[iFreq] = 40.0 / pow(t_CST::freq(frqType, _channel), 2) * stec * 10.0e16; 398 bool vTecUsage = true; 399 for (unsigned ii = 0; ii < OPT->LCs(_prn.system()).size(); ii++) { 400 t_lc::type tLC = OPT->LCs(_prn.system())[ii]; 401 if (tLC == t_lc::cIF || tLC == t_lc::lIF) { 402 vTecUsage = false; 403 } 404 } 405 if (vTecUsage) { 406 if (vTec) { 407 double stec = station->stec(vTec, _signalPropagationTime, rSat); 408 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 409 t_frequency::type frqType = static_cast<t_frequency::type>(iFreq); 410 _model._ionoCodeDelay[iFreq] = 40.0 / pow(t_CST::freq(frqType, _channel), 2) * stec * 10.0e16; 411 } 412 } 413 else { 414 _model._set = false; 415 return failure; 403 416 } 404 417 } … … 420 433 //////////////////////////////////////////////////////////////////////////// 421 434 void t_pppSatObs::printModel() const { 435 422 436 LOG.setf(ios::fixed); 423 437 LOG << "MODEL for Satellite " << _prn.toString() << endl … … 440 454 } 441 455 } 442 LOG << "OBS-CMP P3: " << _prn.toString() << " " 443 << setw(12) << setprecision(3) << obsValue(t_lc::cIF) << " " 444 << setw(12) << setprecision(3) << cmpValue(t_lc::cIF) << " " 445 << setw(12) << setprecision(3) << obsValue(t_lc::cIF) - cmpValue(t_lc::cIF) << endl; 446 447 LOG << "OBS-CMP L3: " << _prn.toString() << " " 448 << setw(12) << setprecision(3) << obsValue(t_lc::lIF) << " " 449 << setw(12) << setprecision(3) << cmpValue(t_lc::lIF) << " " 450 << setw(12) << setprecision(3) << obsValue(t_lc::lIF) - cmpValue(t_lc::lIF) << endl; 451 456 for (unsigned ii = 0; ii < OPT->LCs(_prn.system()).size(); ii++) { 457 t_lc::type tLC = OPT->LCs(_prn.system())[ii]; 458 LOG << "OBS-CMP " << t_lc::toString(tLC) << ": " << _prn.toString() << " " 459 << setw(12) << setprecision(3) << obsValue(tLC) << " " 460 << setw(12) << setprecision(3) << cmpValue(tLC) << " " 461 << setw(12) << setprecision(3) << obsValue(tLC) - cmpValue(tLC) << endl; 462 463 } 452 464 LOG << "OBS-CMP MW: " << _prn.toString() << " " 453 465 << setw(12) << setprecision(3) << obsValue(t_lc::MW) << " "
Note:
See TracChangeset
for help on using the changeset viewer.