Changeset 8372 in ntrip for trunk/BNC/src/GPSDecoder.cpp
- Timestamp:
- Jun 13, 2018, 2:37:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/GPSDecoder.cpp
r6448 r8372 35 35 * Created: 16-Dec-2011 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 45 45 #include "bncsettings.h" 46 46 #include "bncrinex.h" 47 #include "bncutils.h" 47 48 48 49 using namespace std; … … 63 64 ////////////////////////////////////////////////////////////////////////////// 64 65 void GPSDecoder::initRinex(const QByteArray& staID, const QUrl& mountPoint, 65 const QByteArray& latitude, 66 const QByteArray& latitude, 66 67 const QByteArray& longitude, const QByteArray& nmea, 67 68 const QByteArray& ntripVersion) { … … 70 71 } 71 72 bncSettings settings; 72 if ( !settings.value("rnxPath").toString().isEmpty() ) { 73 _rnx = new bncRinex(staID, mountPoint, latitude, longitude, 73 if ( !settings.value("rnxPath").toString().isEmpty() ) { 74 _rnx = new bncRinex(staID, mountPoint, latitude, longitude, 74 75 nmea, ntripVersion); 75 76 } 76 } 77 } 77 78 78 79 // Write RINEX Epoch … … 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 } 86 87 _rnx->dumpEpoch(format, obs._time); 87 88 } 88 } 89 } 89 90 90 91 // Set RINEX Reconnect Flag
Note:
See TracChangeset
for help on using the changeset viewer.