Changeset 3578 in ntrip
- Timestamp:
- Dec 26, 2011, 10:24:30 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/GPSS/hassDecoder.cpp
r3520 r3578 20 20 #include "bnctime.h" 21 21 #include "bncutils.h" 22 #include "RTCM3/RTCM3coDecoder.h" 22 23 23 24 using namespace std; … … 25 26 // Constructor 26 27 //////////////////////////////////////////////////////////////////////////// 27 hassDecoder::hassDecoder(const QString& staID) : RTCM3coDecoder(staID){28 hassDecoder::hassDecoder(const QString& staID) { 28 29 _GPSweeks = -1.0; 29 30 } … … 128 129 0.0, dotRao[0], dotRao[1], dotRao[2], 0.0); 129 130 130 reopen(_fileNameSkl, _fileName, _out); 131 printLine(corrLine, coTime); 131 RTCM3coDecoder::reopen(_fileNameSkl, _fileName, _out); 132 if (_out) { 133 *_out << corrLine.toAscii().data() << endl; 134 _out->flush(); 135 } 136 emit newCorrLine(corrLine, _staID, coTime); 132 137 } 133 138 -
trunk/BNC/GPSS/hassDecoder.h
r3505 r3578 5 5 #include <QtCore> 6 6 7 #include "RTCM3/RTCM3coDecoder.h" 7 #include "bncephuser.h" 8 #include "RTCM/GPSDecoder.h" 8 9 9 class hassDecoder : public RTCM3coDecoder {10 class hassDecoder : public bncEphUser, public GPSDecoder { 10 11 Q_OBJECT 11 12 12 public: 13 13 hassDecoder(const QString& staID); … … 15 15 virtual t_irc Decode(char* data, int dataLen, std::vector<std::string>& errmsg); 16 16 17 signals: 18 void newCorrLine(QString line, QString staID, long coTime); 19 17 20 private: 21 std::ofstream* _out; 22 QString _staID; 23 QString _fileNameSkl; 24 QString _fileName; 25 QByteArray _buffer; 26 double _GPSweeks; 18 27 } ; 19 28 -
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r3255 r3578 433 433 } 434 434 435 // Store ephemerides436 //////////////////////////////////////////////////////////////////////////////437 bool RTCM3Decoder::storeEph(const gpsephemeris& gpseph) {438 t_ephGPS eph; eph.set(&gpseph);439 440 return storeEph(eph);441 }442 443 444 bool RTCM3Decoder::storeEph(const t_ephGPS& gpseph) {445 const double secPerWeek = 7.0 * 24.0 * 3600.0;446 double weekold = 0.0;447 double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / secPerWeek;448 string prn = gpseph.prn().toAscii().data();449 if ( _ephList.find(prn) != _ephList.end() ) {450 weekold = _ephList.find(prn)->second.GPSweek()451 + _ephList.find(prn)->second.GPSweeks() / secPerWeek;452 }453 454 if ( weeknew - weekold > 1.0/secPerWeek ) {455 _ephList[prn] = gpseph;456 457 return true;458 }459 460 return false;461 }462 463 435 // Time of Corrections 464 436 ////////////////////////////////////////////////////////////////////////////// -
trunk/BNC/RTCM3/RTCM3Decoder.h
r3001 r3578 32 32 #include "../RTCM/GPSDecoder.h" 33 33 #include "RTCM3coDecoder.h" 34 #include "ephemeris.h"35 34 #include "bncrawfile.h" 36 35 … … 46 45 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); 47 46 virtual int corrGPSEpochTime() const; 48 49 bool storeEph(const gpsephemeris& gpseph);50 bool storeEph(const t_ephGPS& gpseph);51 47 52 48 signals: … … 65 61 t_mode _mode; 66 62 67 std::map<std::string, t_ephGPS> _ephList;68 63 double _antXYZ[3]; 69 64 bncRawFile* _rawFile; -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r3520 r3578 31 31 #include <QtNetwork> 32 32 33 #include "bncephuser.h"34 33 #include "RTCM/GPSDecoder.h" 35 34 … … 38 37 } 39 38 40 class RTCM3coDecoder : public bncEphUser, public GPSDecoder {39 class RTCM3coDecoder : public QObject, public GPSDecoder { 41 40 Q_OBJECT 42 41 public: … … 53 52 void newCorrLine(QString line, QString staID, long coTime); 54 53 55 pr otected:54 private: 56 55 void printLine(const QString& line, long coTime); 57 56 std::ofstream* _out; … … 61 60 QByteArray _buffer; 62 61 double _GPSweeks; 63 64 private:65 62 ClockOrbit _co; 66 63 Bias _bias;
Note:
See TracChangeset
for help on using the changeset viewer.