Changeset 8417 in ntrip
- Timestamp:
- Jul 13, 2018, 1:14:18 PM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r8271 r8417 56 56 #include "bnccore.h" 57 57 #include "bncutils.h" 58 #include "bnctime.h" 58 59 #include "bnczerodecoder.h" 59 60 #include "bncnetqueryv0.h" … … 624 625 if (!_rawFile) { 625 626 QString prn(obs._prn.toString().c_str()); 626 long iSec = long(floor(obs._time.gpssec() + 0.5)); 627 long obsTime = obs._time.gpsw() * 7 * 24 * 3600 + iSec; 628 QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn); 627 bncTime obsTime = obs._time; 628 QMap<QString, bncTime>::const_iterator it = _prnLastEpo.find(prn); 629 629 if (it != _prnLastEpo.end()) { 630 longoldTime = it.value();630 bncTime oldTime = it.value(); 631 631 if (obsTime < oldTime) { 632 emit(newMessage(_staID + ": old observation " + prn.toLatin1(), 633 false)); 632 emit(newMessage(_staID + ": old observation " + prn.toLatin1(), false)); 634 633 continue; 635 634 } else if (obsTime == oldTime) { 636 emit(newMessage( 637 _staID + ": observation coming more than once " 638 + prn.toLatin1(), false)); 635 emit(newMessage(_staID + ": observation coming more than once " 636 + prn.toLatin1(), false)); 639 637 continue; 640 638 } -
trunk/BNC/src/bncgetthread.h
r8271 r8417 139 139 bool _rawOutput; 140 140 bool _latencycheck; 141 QMap<QString, long>_prnLastEpo;141 QMap<QString, bncTime> _prnLastEpo; 142 142 QMap<char, QVector<QString> > _rnxTypes; 143 143 QStringList _gloSlots; -
trunk/BNC/src/bncrinex.cpp
r8397 r8417 496 496 // ------------- 497 497 const t_satObs& fObs = obsList.first(); 498 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs._time.gpsw(), f loor(fObs._time.gpssec()+0.5));498 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs._time.gpsw(), fObs._time.gpssec()); 499 499 500 500 // Close the file -
trunk/BNC/src/bnctime.cpp
r8372 r8417 6 6 #include <sstream> 7 7 #include <iomanip> 8 #include <iostream> 8 9 9 10 #include "bnctime.h" … … 82 83 if(msec/1000.0 < sec - 86400.0) 83 84 ++week; 84 return set(week, msec/1000.0);85 return set(week, double(msec/1000.0)); 85 86 } 86 87 … … 118 119 intsec = sec; 119 120 updatetime(&week, &intsec, msec, 0); /* Moscow -> GPS */ 120 sec = intsec+ (msec%1000)/1000.0;121 sec = intsec+double((msec%1000)/1000.0); 121 122 return set(week, sec); 122 123 } … … 132 133 msec -= 7*24*60*60*1000; 133 134 currentGPSWeeks(week, sec); 134 if( msec/1000.0 < sec - 86400.0)135 if((msec/1000.0) < (sec - 86400.0)) { 135 136 ++week; 136 return set(week, msec/1000.0); 137 } 138 return set(week, double(msec/1000.0)); 137 139 } 138 140 -
trunk/BNC/src/bncutils.cpp
r8203 r8417 251 251 bool checkForWrongObsEpoch(bncTime obsEpoch) { 252 252 const double maxDt = 600.0; 253 long iSec = long(floor(obsEpoch.gpssec()+0.5)); 254 long obsTime = obsEpoch.gpsw()*7*24*3600 + iSec; 253 bncTime obsTime = obsEpoch; 255 254 int week; 256 255 double sec; 257 256 currentGPSWeeks(week, sec); 258 long currTime = week * 7*24*3600 + long(sec);257 bncTime currTime(week, sec); 259 258 260 259 if (fabs(currTime - obsTime) > maxDt) { … … 575 574 const ColumnVector& yi, // vector of the initial y-values 576 575 double dx, // the step size for the integration 577 double* acc, // ad itional acceleration576 double* acc, // additional acceleration 578 577 ColumnVector (*der)(double x, const ColumnVector& y, double* acc) 579 578 // A pointer to a function that computes the
Note:
See TracChangeset
for help on using the changeset viewer.