Changeset 9386 in ntrip for trunk/BNC/src/PPP/pppSatObs.cpp
- Timestamp:
- Mar 25, 2021, 3:17:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r9303 r9386 63 63 64 64 // Select pseudoranges and phase observations 65 // ------------------------------------------ 65 // ------------------------------------------- 66 66 const string preferredAttrib = "G:12&PWCSLXYN G:5&IQX R:12&PC R:3&IQX E:16&BCX E:578&IQX J:1&SLXCZ J:26&SLX J:5&IQX C:IQX I:ABCX S:1&C S:5&IQX"; 67 67 … … 296 296 297 297 if (tLC == t_lc::GIM) { 298 retVal = OPT->_sigmaGIM * OPT->_sigmaGIM ;298 retVal = OPT->_sigmaGIM * OPT->_sigmaGIM + OPT->_sigmaGIM * OPT->_sigmaGIM; 299 299 } 300 300 … … 304 304 305 305 map<t_frequency::type, double>::const_iterator it; 306 for (it = codeCoeff.begin(); it != codeCoeff.end(); it++) {// qDebug() << "codeCoeff : " << t_frequency::toString(it->first).c_str() << ": " << it->second;306 for (it = codeCoeff.begin(); it != codeCoeff.end(); it++) {//cout << "codeCoeff : " << t_frequency::toString(it->first).c_str() << ": " << it->second << endl; 307 307 retVal += it->second * it->second * OPT->_sigmaC1 * OPT->_sigmaC1; 308 308 } 309 309 310 for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {// qDebug() << "phaseCoeff: " << t_frequency::toString(it->first).c_str() << ": " << it->second;310 for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//cout << "phaseCoeff: " << t_frequency::toString(it->first).c_str() << ": " << it->second << endl; 311 311 retVal += it->second * it->second * OPT->_sigmaL1 * OPT->_sigmaL1; 312 312 } … … 316 316 // De-Weight GLONASS and BDS 317 317 // -------------------------- 318 if ( _prn.system() == 'R'||319 _prn.system() == 'C') {318 if ((_prn.system() == 'R' && (t_lc::includesCode(tLC) || t_lc::includesPhase(tLC))) || 319 (_prn.system() == 'C' && (t_lc::includesCode(tLC) || t_lc::includesPhase(tLC)))) { 320 320 retVal *= 5.0; 321 321 } … … 336 336 // 337 337 //////////////////////////////////////////////////////////////////////////// 338 double t_pppSatObs::maxRes(t_lc::type tLC) const { //qDebug() << "t_pppSatObs::maxRes(t_lc::type tLC)";338 double t_pppSatObs::maxRes(t_lc::type tLC) const { 339 339 double retVal = 0.0; 340 340 … … 345 345 346 346 map<t_frequency::type, double>::const_iterator it; 347 for (it = codeCoeff.begin(); it != codeCoeff.end(); it++) {// qDebug() << "codeCoeff: " << it->first << ": " << it->second;347 for (it = codeCoeff.begin(); it != codeCoeff.end(); it++) {//cout << "codeCoeff: " << it->first << ": " << it->second << endl; 348 348 retVal += it->second * it->second * OPT->_maxResC1 * OPT->_maxResC1; 349 349 } 350 for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {// qDebug() << "phaseCoeff: " << it->first << ": " << it->second;350 for (it = phaseCoeff.begin(); it != phaseCoeff.end(); it++) {//cout << "phaseCoeff: " << it->first << ": " << it->second << endl; 351 351 retVal += it->second * it->second * OPT->_maxResL1 * OPT->_maxResL1; 352 352 } 353 353 if (tLC == t_lc::GIM) { 354 retVal = 3.0 * OPT->_sigmaGIM * OPT->_sigmaGIM;354 retVal = 3.0 * (OPT->_sigmaGIM * OPT->_sigmaGIM + OPT->_sigmaGIM * OPT->_sigmaGIM); 355 355 } 356 356 if (tLC == t_lc::Tz0) { 357 357 retVal = 3.0 * OPT->_sigmaTz0 * OPT->_sigmaTz0; 358 358 } 359 return sqrt(retVal); 359 360 retVal = sqrt(retVal); 361 362 return retVal; 360 363 } 361 364
Note:
See TracChangeset
for help on using the changeset viewer.