Changeset 6487 in ntrip


Ignore:
Timestamp:
Dec 28, 2014, 5:19:06 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/RTCM3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r6486 r6487  
    215215void RTCM3coDecoder::sendResults() {
    216216
    217   QList<t_orbCorr>&     orbCorrections = _orbCorrections[_lastTime];
    218   QList<t_clkCorr>&     clkCorrections = _clkCorrections[_lastTime];
    219   QList<t_satCodeBias>& codeBiases     = _codeBiases[_lastTime];
     217  QList<t_orbCorr>&      orbCorrections = _orbCorrections[_lastTime];
     218  QList<t_clkCorr>&      clkCorrections = _clkCorrections[_lastTime];
     219  QList<t_satCodeBias>&  codeBiases     = _codeBiases[_lastTime];
     220  QList<t_satPhaseBias>& phaseBiases    = _phaseBiases[_lastTime];
     221  t_vTec&                vTec           = _vTec[_lastTime];
    220222
    221223  // Orbit and clock corrections of all satellites
     
    329331  }
    330332
     333  // Phase Biases
     334  // -----------
     335  for (unsigned ii = 0; ii < CLOCKORBIT_NUMGPS + _phaseBias.NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) {
     336    char sysCh = ' ';
     337    if      (ii < _phaseBias.NumberOfSat[CLOCKORBIT_SATGPS]) {
     338      sysCh = 'G';
     339    }
     340    else if (ii >= CLOCKORBIT_NUMGPS) {
     341      sysCh = 'R';
     342    }
     343    else {
     344      continue;
     345    }
     346    t_satPhaseBias satPhaseBias;
     347    satPhaseBias._prn.set(sysCh, _phaseBias.Sat[ii].ID);
     348    satPhaseBias._staID = _staID.toAscii().data();
     349    satPhaseBias._time  = _lastTime;
     350    for (unsigned jj = 0; jj < _phaseBias.Sat[ii].NumberOfPhaseBiases; jj++) {
     351      const PhaseBias::PhaseBiasSat::PhaseBiasEntry& biasEntry = _phaseBias.Sat[ii].Biases[jj];
     352      t_frqPhaseBias frqPhaseBias;
     353      frqPhaseBias._rnxType2ch = codeTypeToRnxType(sysCh, biasEntry.Type);
     354      frqPhaseBias._value      = biasEntry.Bias;
     355      if (!frqPhaseBias._rnxType2ch.empty()) {
     356        satPhaseBias._bias.push_back(frqPhaseBias);
     357      }
     358    }
     359    phaseBiases.push_back(satPhaseBias);
     360  }
     361
    331362  // Dump all older epochs
    332363  // ---------------------
     
    356387      t_satCodeBias::writeEpoch(_out, itCB.value());
    357388      itCB.remove();
     389    }
     390  }
     391  QMutableMapIterator<bncTime, QList<t_satPhaseBias> > itPB(_phaseBiases);
     392  while (itPB.hasNext()) {
     393    itPB.next();
     394    if (itPB.key() < _lastTime) {
     395      emit newPhaseBiases(itPB.value());
     396      t_satPhaseBias::writeEpoch(_out, itPB.value());
     397      itPB.remove();
    358398    }
    359399  }
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.h

    r6483 r6487  
    7777  QMap<bncTime, QList<t_satCodeBias> >  _codeBiases;
    7878  QMap<bncTime, QList<t_satPhaseBias> > _phaseBiases;
    79   QMap<bncTime, QList<t_vTec> >         _vTec;
     79  QMap<bncTime, t_vTec>                 _vTec;
    8080};
    8181
Note: See TracChangeset for help on using the changeset viewer.