Ignore:
Timestamp:
Jul 19, 2021, 10:46:16 PM (3 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_SSR_I/pppClient.cpp

    r8542 r9481  
    9999    satData->P2       = 0.0;
    100100    satData->P5       = 0.0;
     101    satData->P6       = 0.0;
    101102    satData->P7       = 0.0;
    102103    satData->L1       = 0.0;
    103104    satData->L2       = 0.0;
    104105    satData->L5       = 0.0;
     106    satData->L6       = 0.0;
    105107    satData->L7       = 0.0;
    106108    for (unsigned ifrq = 0; ifrq < obs->_obs.size(); ifrq++) {
     
    115117            cb  = bias._value;
    116118          }
     119          // FIXME: use C/Q bias for X observations
     120          // qDebug() << satData->prn << frqObs->_rnxType2ch.c_str();
    117121        }
    118122      }
     
    130134        if (frqObs->_codeValid)  satData->P5       = frqObs->_code + cb;
    131135        if (frqObs->_phaseValid) satData->L5       = frqObs->_phase;
     136        if (frqObs->_slip)       satData->slipFlag = true;
     137      }
     138      else if (frqObs->_rnxType2ch[0] == '6') {
     139        if (frqObs->_codeValid)  satData->P6       = frqObs->_code + cb;
     140        if (frqObs->_phaseValid) satData->L6       = frqObs->_phase;
    132141        if (frqObs->_slip)       satData->slipFlag = true;
    133142      }
     
    276285  // ---------------------
    277286  else if (satData->system() == 'C' && _opt->useSystem('C')) {
    278     if (satData->P2 != 0.0 && satData->P7 != 0.0 &&
    279         satData->L2 != 0.0 && satData->L7 != 0.0 ) {
     287    if (satData->P2 != 0.0 && satData->P6 != 0.0 &&
     288        satData->L2 != 0.0 && satData->L6 != 0.0 ) {
    280289      double f2 = t_CST::freq(t_frequency::C2, 0);
    281       double f7 = t_CST::freq(t_frequency::C7, 0);
    282       double a2 =   f2 * f2 / (f2 * f2 - f7 * f7);
    283       double a7 = - f7 * f7 / (f2 * f2 - f7 * f7);
     290      double f6 = t_CST::freq(t_frequency::C6, 0);
     291      double a2 =   f2 * f2 / (f2 * f2 - f6 * f6);
     292      double a6 = - f6 * f6 / (f2 * f2 - f6 * f6);
    284293      satData->L2      = satData->L2 * t_CST::c / f2;
    285       satData->L7      = satData->L7 * t_CST::c / f7;
    286       satData->P3      = a2 * satData->P2 + a7 * satData->P7;
    287       satData->L3      = a2 * satData->L2 + a7 * satData->L7;
    288       satData->lambda3 = a2 * t_CST::c / f2 + a7 * t_CST::c / f7;
     294      satData->L6      = satData->L6 * t_CST::c / f6;
     295      satData->P3      = a2 * satData->P2 + a6 * satData->P6;
     296      satData->L3      = a2 * satData->L2 + a6 * satData->L6;
     297      satData->lambda3 = a2 * t_CST::c / f2 + a6 * t_CST::c / f6;
    289298      satData->lkA     = a2;
    290       satData->lkB     = a7;
     299      satData->lkB     = a6;
    291300      _epoData->satData[satData->prn] = satData;
    292301    }
Note: See TracChangeset for help on using the changeset viewer.