- Timestamp:
- Aug 16, 2014, 2:31:32 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppRun.cpp
r5950 r5951 101 101 _rnxNavFile = 0; 102 102 _corrFile = 0; 103 _maxSpeed = 0;104 103 _speed = 0; 105 104 connect(this, SIGNAL(progressRnxPPP(int)), BNC_CORE, SIGNAL(progressRnxPPP(int))); … … 382 381 ++nEpo; 383 382 384 if (_maxSpeed != 0) { 385 QMutexLocker locker(&_mutex); 386 if (_speed < _maxSpeed) { 387 double sleepTime = 0.02 * _maxSpeed / _speed; 388 t_pppThread::msleep(sleepTime*1.e3); 389 } 383 if (_speed < 100) { 384 double sleepTime = 2.0 / _speed; 385 t_pppThread::msleep(sleepTime*1.e3); 390 386 } 391 387 -
trunk/BNC/src/PPP/pppRun.h
r5940 r5951 63 63 t_rnxNavFile* _rnxNavFile; 64 64 t_corrFile* _corrFile; 65 int _maxSpeed;66 65 int _speed; 67 66 };
Note:
See TracChangeset
for help on using the changeset viewer.