Changeset 3751 in ntrip for trunk/BNC/combination


Ignore:
Timestamp:
Mar 30, 2012, 3:44:32 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3655 r3751  
    309309  // Save Orbit-Only Corrections
    310310  // ---------------------------
    311   if (newCorr->raoSet && !newCorr->dClkSet) {
     311  if (newCorr->tRao.valid() && !newCorr->tClk.valid()) {
    312312    QString corrID = newCorr->ID();
    313313    if (_orbitCorrs.find(corrID) != _orbitCorrs.end()) {
     
    320320  // Merge with saved orbit correction
    321321  // ---------------------------------
    322   else if (newCorr->dClkSet && !newCorr->raoSet) {
     322  else if (newCorr->tClk.valid() && !newCorr->tRao.valid()) {
    323323    QString corrID = newCorr->ID();
    324324    if (_orbitCorrs.find(corrID) != _orbitCorrs.end()) {
     
    329329  // Check Modulo Time
    330330  // -----------------
    331   if (int(newCorr->tt.gpssec()) % moduloTime != 0.0) {
     331  if (int(newCorr->tClk.gpssec()) % moduloTime != 0.0) {
    332332    delete newCorr;
    333333    return;
     
    336336  // Delete old corrections
    337337  // ----------------------
    338   if (_resTime.valid() && newCorr->tt <= _resTime) {
     338  if (_resTime.valid() && newCorr->tClk <= _resTime) {
    339339    delete newCorr;
    340340    return;
     
    368368  while (itTime.hasNext()) {
    369369    bncTime epoTime = itTime.next();
    370     if (epoTime < newCorr->tt - moduloTime) {
     370    if (epoTime < newCorr->tClk - moduloTime) {
    371371      _resTime = epoTime;
    372372      processEpoch();
     
    376376  // Merge or add the correction
    377377  // ---------------------------
    378   QVector<cmbCorr*>& corrs = _buffer[newCorr->tt].corrs;
     378  QVector<cmbCorr*>& corrs = _buffer[newCorr->tClk].corrs;
    379379  cmbCorr* existingCorr = 0;
    380380  QVectorIterator<cmbCorr*> itCorr(corrs);
     
    406406  ColumnVector oldXC(4);
    407407  ColumnVector oldVV(3);
    408   corr->eph->position(corr->tt.gpsw(), corr->tt.gpssec(),
     408  corr->eph->position(corr->tRao.gpsw(), corr->tRao.gpssec(),
    409409                      oldXC.data(), oldVV.data());
    410410
    411411  ColumnVector newXC(4);
    412412  ColumnVector newVV(3);
    413   lastEph->position(corr->tt.gpsw(), corr->tt.gpssec(),
     413  lastEph->position(corr->tRao.gpsw(), corr->tRao.gpssec(),
    414414                    newXC.data(), newVV.data());
    415415
     
    11541154t_irc bncComb::mergeOrbitCorr(const cmbCorr* orbitCorr, cmbCorr* clkCorr) {
    11551155
    1156   double dt = clkCorr->tt - orbitCorr->tt;
    1157 
    1158   clkCorr->iod = orbitCorr->iod; // is it always correct?
    1159   clkCorr->eph = orbitCorr->eph;
    1160 
    1161   clkCorr->rao = orbitCorr->rao
    1162                + orbitCorr->dotRao    * dt
    1163                + orbitCorr->dotDotRao * dt * dt;
    1164 
    1165   clkCorr->dotRao = orbitCorr->dotRao
    1166                   + orbitCorr->dotDotRao * dt;
    1167 
     1156  clkCorr->iod       = orbitCorr->iod; // is it always correct?
     1157  clkCorr->eph       = orbitCorr->eph;
     1158  clkCorr->tRao      = orbitCorr->tRao;
     1159  clkCorr->rao       = orbitCorr->rao;
     1160  clkCorr->dotRao    = orbitCorr->dotRao;
    11681161  clkCorr->dotDotRao = orbitCorr->dotDotRao;
    11691162
    1170   clkCorr->raoSet = true;
    1171 
    11721163  return success;
    11731164}
Note: See TracChangeset for help on using the changeset viewer.