Changeset 3528 in ntrip
- Timestamp:
- Dec 16, 2011, 5:23:35 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/GPSDecoder.h
r3342 r3528 33 33 34 34 #include "bncconst.h" 35 #include "bncrinex.h" 35 36 36 37 class t_obs { … … 119 120 class GPSDecoder { 120 121 public: 121 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg) = 0;122 GPSDecoder(); 122 123 123 virtual ~GPSDecoder() {} 124 virtual ~GPSDecoder() {delete _rnx;} 125 126 virtual t_irc Decode(char* buffer, int bufLen, 127 std::vector<std::string>& errmsg) = 0; 128 124 129 125 130 virtual int corrGPSEpochTime() const {return -1;} 131 132 void dumpRinexEpoch(const t_obs& obs, const QByteArray& format); 133 134 void setRinexReconnectFlag(bool flag); 126 135 127 136 struct t_antInfo { … … 145 154 146 155 QList<t_obs> _obsList; 147 QList<int> _typeList; // RTCM message types 148 QStringList _antType; // RTCM antenna descriptor 149 QList<t_antInfo> _antList; // RTCM antenna XYZ 156 QList<int> _typeList; // RTCM message types 157 QStringList _antType; // RTCM antenna descriptor 158 QList<t_antInfo> _antList; // RTCM antenna XYZ 159 bncRinex* _rnx; // RINEX writer 150 160 }; 151 161 -
trunk/BNC/bnc.pro
r3504 r3528 82 82 upload/bncrtnetuploadcaster.cpp upload/bnccustomtrafo.cpp \ 83 83 upload/bncephuploadcaster.cpp \ 84 RTCM/ RTCM2.cpp RTCM/RTCM2Decoder.cpp\84 RTCM/GPSDecoder.cpp RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 85 85 RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \ 86 86 RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex/rtcm3torinex.c \ -
trunk/BNC/bncgetthread.cpp
r3527 r3528 52 52 #include "bncapp.h" 53 53 #include "bncutils.h" 54 #include "bncrinex.h"55 54 #include "bnczerodecoder.h" 56 55 #include "bncnetqueryv0.h" … … 116 115 void bncGetThread::initialize() { 117 116 117 bncSettings settings; 118 118 119 setTerminationEnabled(true); 119 120 … … 127 128 _nextSleep = 0; 128 129 _PPPclient = 0; 129 130 bncSettings settings; 131 132 _miscMount = settings.value("miscMount").toString(); 133 134 // RINEX writer 135 // ------------ 136 _samplingRate = settings.value("rnxSampl").toInt(); 137 if ( settings.value("rnxPath").toString().isEmpty() ) { 138 _rnx = 0; 139 } 140 else { 141 _rnx = new bncRinex(_staID, _mountPoint, _latitude, _longitude, 142 _nmea, _ntripVersion); 143 } 130 _miscMount = settings.value("miscMount").toString(); 144 131 145 132 // Serial Port … … 364 351 delete it.value(); 365 352 } 366 delete _rnx;367 353 delete _rawFile; 368 354 delete _serialOutFile; … … 515 501 _prnLastEpo[prn] = obsTime; 516 502 517 // RINEX Output 518 // ------------ 519 if (_rnx) { 520 if (_samplingRate == 0 || iSec % _samplingRate == 0) { 521 _rnx->deepCopy(obs); 522 } 523 _rnx->dumpEpoch(_format, obsTime); 524 } 525 503 decoder()->dumpRinexEpoch(obs, _format); 504 526 505 // PPP Client 527 506 // ---------- … … 560 539 if (_query && _query->status() == bncNetQuery::running) { 561 540 _nextSleep = 0; 562 if (_rnx) { 563 _rnx->setReconnectFlag(false); 541 QMapIterator<QString, GPSDecoder*> itDec(_decoders); 542 while (itDec.hasNext()) { 543 itDec.next(); 544 GPSDecoder* decoder = itDec.value(); 545 decoder->setRinexReconnectFlag(false); 564 546 } 565 547 return success; … … 623 605 } 624 606 625 if (_rnx) { 626 _rnx->setReconnectFlag(true); 607 QMapIterator<QString, GPSDecoder*> itDec(_decoders); 608 while (itDec.hasNext()) { 609 itDec.next(); 610 GPSDecoder* decoder = itDec.value(); 611 decoder->setRinexReconnectFlag(false); 627 612 } 628 613 -
trunk/BNC/bncgetthread.h
r3527 r3528 38 38 #include "bncrawfile.h" 39 39 40 class bncRinex;41 40 class QextSerialPort; 42 41 class latencyChecker; … … 117 116 int _nextSleep; 118 117 int _iMount; 119 int _samplingRate;120 bncRinex* _rnx;121 118 bncRawFile* _rawFile; 122 119 QextSerialPort* _serialPort; -
trunk/BNC/bncrinex.cpp
r3525 r3528 101 101 102 102 _approxPos[0] = _approxPos[1] = _approxPos[2] = 0.0; 103 104 _samplingRate = settings.value("rnxSampl").toInt(); 103 105 } 104 106 -
trunk/BNC/bncrinex.h
r3525 r3528 26 26 #define BNCRINEX_H 27 27 28 #include <QByteArray> 29 #include <QDateTime> 30 #include <QList> 31 28 #include <QtCore> 32 29 #include <fstream> 33 30 34 31 #include "bncconst.h" 35 #include "RTCM/GPSDecoder.h" 32 33 class t_obs; 36 34 37 35 class bncRinex { … … 47 45 const QString& intStr, 48 46 QDateTime* nextEpoch = 0); 47 48 int samplingRate() const {return _samplingRate;} 49 49 50 50 void setApproxPos(double stax, double stay, double staz) { … … 90 90 bool _reloadDone; 91 91 double _approxPos[3]; 92 int _samplingRate; 92 93 93 94 QMap<QString, int> _slip_cnt_L1;
Note:
See TracChangeset
for help on using the changeset viewer.