Changeset 8373 in ntrip for branches/BNC_2.12
- Timestamp:
- Jun 13, 2018, 2:46:20 PM (6 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/GPSDecoder.cpp
r6448 r8373 45 45 #include "bncsettings.h" 46 46 #include "bncrinex.h" 47 #include "bncutils.h" 47 48 48 49 using namespace std; … … 80 81 void GPSDecoder::dumpRinexEpoch(const t_satObs& obs, const QByteArray& format) { 81 82 if (_rnx) { 82 long iSec = long(floor(obs._time.gpssec()+0.5));83 if (_rnx->samplingRate() == 0 || iSec % _rnx->samplingRate() == 0) {83 int sec = int(nint(obs._time.gpssec()*10)); 84 if (_rnx->samplingRate() == 0 || sec % (_rnx->samplingRate()*10) == 0) { 84 85 _rnx->deepCopy(obs); 85 86 } -
branches/BNC_2.12/src/bnccaster.cpp
r8120 r8373 303 303 if (epoTime <= maxTime) { 304 304 const QList<t_satObs>& allObs = itEpo.value(); 305 int sec = int(nint(epoTime.gpssec())); 306 if ( (_out || _sockets) && (_samplingRate == 0 || sec % _samplingRate == 0) ) { 307 305 int sec = int(nint(epoTime.gpssec()*10)); 306 if ( (_out || _sockets) && (_samplingRate == 0 || sec % (_samplingRate*10) == 0) ) { 308 307 QListIterator<t_satObs> it(allObs); 309 308 bool firstObs = true; -
branches/BNC_2.12/src/bnctime.cpp
r7138 r8373 37 37 int deltad; 38 38 int dow = 0; 39 while ( gpssec >= 86400 ) {40 gpssec-=86400 ;39 while ( gpssec >= 86400.0 ) { 40 gpssec-=86400.0; 41 41 dow++; 42 42 } 43 while ( gpssec < 0 ) {44 gpssec+=86400 ;43 while ( gpssec < 0.0 ) { 44 gpssec+=86400.0; 45 45 dow--; 46 46 } … … 59 59 gpssec += 14.0; 60 60 gpsw += 1356.0; 61 while ( gpssec >= 86400 ) {62 gpssec-=86400 ;61 while ( gpssec >= 86400.0 ) { 62 gpssec-=86400.0; 63 63 dow++; 64 64 } 65 while ( gpssec < 0 ) {66 gpssec+=86400 ;65 while ( gpssec < 0.0 ) { 66 gpssec+=86400.0; 67 67 dow--; 68 68 } … … 142 142 _sec = daysec; 143 143 _mjd = mjd; 144 while ( _sec >= 86400 ) {145 _sec-=86400 ;144 while ( _sec >= 86400.0 ) { 145 _sec-=86400.0; 146 146 _mjd++; 147 147 } 148 while ( _sec < 0 ) {149 _sec+=86400 ;148 while ( _sec < 0.0 ) { 149 _sec+=86400.0; 150 150 _mjd--; 151 151 } -
branches/BNC_2.12/src/latencychecker.cpp
r8272 r8373 327 327 const t_satObs& obs = it.next(); 328 328 bool wrongObservationEpoch = checkForWrongObsEpoch(obs._time); 329 l._newSec = static_cast<int>( obs._time.gpssec());329 l._newSec = static_cast<int>(nint(obs._time.gpssec()*10)); 330 330 if (l._newSec > l._oldSec && !wrongObservationEpoch) { 331 if (l._newSec % _miscIntr < l._oldSec % _miscIntr) { 331 if (l._newSec % _miscIntr < l._oldSec % (_miscIntr * 10)) { 332 332 333 if (l._numLat > 0) { 333 334 if (l._meanDiff > 0.0) { -
branches/BNC_2.12/src/rinex/reqcedit.cpp
r8370 r8373 336 336 } 337 337 338 i f (_samplingRate == 0 ||339 fmod(round(epo->tt.gpssec()), _samplingRate) == 0) {338 int sec = int(nint(epo->tt.gpssec()*10)); 339 if (_samplingRate == 0 || sec % (_samplingRate*10) == 0) { 340 340 applyLLI(obsFile, epo); 341 341 outObsFile.writeEpoch(epo);
Note:
See TracChangeset
for help on using the changeset viewer.