Changeset 8372 in ntrip for trunk/BNC/src/GPSDecoder.cpp


Ignore:
Timestamp:
Jun 13, 2018, 2:37:07 PM (6 years ago)
Author:
stuerze
Message:

minor changes to allow 10 Hz observation data processing (latency checker) and resampling (RINEX files, feed engine)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/GPSDecoder.cpp

    r6448 r8372  
    3535 * Created:    16-Dec-2011
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    4545#include "bncsettings.h"
    4646#include "bncrinex.h"
     47#include "bncutils.h"
    4748
    4849using namespace std;
     
    6364//////////////////////////////////////////////////////////////////////////////
    6465void GPSDecoder::initRinex(const QByteArray& staID, const QUrl& mountPoint,
    65                            const QByteArray& latitude, 
     66                           const QByteArray& latitude,
    6667                           const QByteArray& longitude, const QByteArray& nmea,
    6768                           const QByteArray& ntripVersion) {
     
    7071  }
    7172  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,
    7475                        nmea, ntripVersion);
    7576  }
    76 } 
     77}
    7778
    7879// Write RINEX Epoch
     
    8081void GPSDecoder::dumpRinexEpoch(const t_satObs& obs, const QByteArray& format) {
    8182  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) {
    8485      _rnx->deepCopy(obs);
    8586    }
    8687    _rnx->dumpEpoch(format, obs._time);
    8788  }
    88 } 
     89}
    8990
    9091// Set RINEX Reconnect Flag
Note: See TracChangeset for help on using the changeset viewer.