Changeset 3274 in ntrip for trunk/BNC/combination/bnccomb.cpp


Ignore:
Timestamp:
Apr 13, 2011, 3:24:40 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3262 r3274  
    214214  }
    215215
     216  // Check Modulo Time
     217  // -----------------
     218  const int moduloTime = 10;
     219  if (int(newCorr->tt.gpssec()) % moduloTime != 0.0) {
     220    delete newCorr;
     221    return;
     222  }
     223
    216224  // Reject delayed corrections
    217225  // --------------------------
     
    244252  // Process all older Epochs (if there are any)
    245253  // -------------------------------------------
    246   const double waitTime = 5.0; // wait 5 sec
     254  const double waitTime = moduloTime/2.0;
    247255  _processedBeforeTime = newCorr->tt - waitTime;
    248256
     
    266274  if (epochsToProcess.size()) {
    267275    processEpochs(epochsToProcess);
    268   }
    269 
    270   // Check Modulo Time
    271   // -----------------
    272   const int moduloTime = 10;
    273   if (int(newCorr->tt.gpssec()) % moduloTime != 0.0) {
    274     delete newCorr;
    275     return;
    276276  }
    277277
     
    349349
    350350  out <<                   "Combination:" << endl
    351       << "------------------------------" << endl;
     351      << "------------------------------" << endl
     352      << "Processed Epochs: "             << endl;
    352353
    353354  // Predict Parameters Values, Add White Noise
     
    380381  QListIterator<cmbEpoch*> itEpo(epochs);
    381382  while (itEpo.hasNext()) {
    382     cmbEpoch* epo = itEpo.next();
     383    cmbEpoch* epo     = itEpo.next();
     384    bncTime   epoTime = epo->time;
     385    out << epoTime.datestr().c_str() << " " << epoTime.timestr().c_str() << endl;
     386
    383387    QMutableMapIterator<QString, t_corr*> itCorr(epo->corr);
    384388    while (itCorr.hasNext()) {
Note: See TracChangeset for help on using the changeset viewer.