Changeset 3578 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Dec 26, 2011, 10:24:30 AM (13 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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 ////////////////////////////////////////////////////////////////////////////// -
TabularUnified 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; -
TabularUnified 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.