Changeset 6121 in ntrip


Ignore:
Timestamp:
Sep 11, 2014, 2:22:25 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcedit.cpp

    r6118 r6121  
    331331  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
    332332    const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iSat];
    333     char                          sys    = rnxSat.satSys;
    334     QString prn = QString("%1%2").arg(sys).arg(rnxSat.satNum,2,10,QChar('0'));
     333    char    sys = rnxSat.prn.system();
     334    QString prn(rnxSat.prn.toString().c_str());
    335335
    336336    for (int iType = 0; iType < obsFile->nTypes(sys); iType++) {
     337      QString type = obsFile->obsType(sys, iType);
    337338      if (!_lli[prn].contains(iType)) {
    338339        _lli[prn][iType] = 0;
    339340      }
    340       if (rnxSat.lli[iType] & 1) {
     341      if (rnxSat.obs.contains(type) && rnxSat.obs[type].lli & 1) {
    341342        _lli[prn][iType] |= 1;
    342343      }
     
    356357  for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) {
    357358    t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iSat];
    358     char                    sys    = rnxSat.satSys;
    359     QString prn = QString("%1%2").arg(sys).arg(rnxSat.satNum,2,10,QChar('0'));
     359    char    sys = rnxSat.prn.system();
     360    QString prn(rnxSat.prn.toString().c_str());
    360361
    361362    for (int iType = 0; iType < obsFile->nTypes(sys); iType++) {
     363      QString type = obsFile->obsType(sys, iType);
    362364      if (_lli[prn].contains(iType) && _lli[prn][iType] & 1) {
    363          rnxSat.lli[iType] |= 1;
     365        if (rnxSat.obs.contains(type)) {
     366          rnxSat.obs[type].lli |= 1;
     367        }
    364368      }
    365369    }
Note: See TracChangeset for help on using the changeset viewer.