Changeset 5268 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jun 17, 2013, 5:12:33 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5266 r5268  
    188188    ++nEpo;
    189189
     190    if (_maxSpeed != 0) {
     191      QMutexLocker locker(&_mutex);
     192      if (_speed < _maxSpeed) {
     193        double sleepTime = 0.02 * _maxSpeed / _speed;
     194        msleep(sleepTime*1.e3);
     195      }
     196    }
     197
    190198    // Get Corrections
    191199    // ---------------
     
    205213
    206214    for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) {
    207 
    208       if (_maxSpeed != 0) {
    209         QMutexLocker locker(&_mutex);
    210         if (_speed < _maxSpeed) {
    211           double sleepTime = 0.01 * _maxSpeed / _speed;
    212           msleep(sleepTime*1.e3);
    213         }
    214       }
    215215
    216216      if (_isToBeDeleted) {
Note: See TracChangeset for help on using the changeset viewer.