Changeset 939 in ntrip for trunk/BNC/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Jun 9, 2008, 3:06:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r913 r939 54 54 #endif 55 55 56 // 57 //////////////////////////////////////////////////////////////////////////// 58 ephSender::ephSender() { 56 // Error Handling 57 //////////////////////////////////////////////////////////////////////////// 58 void RTCM3Error(const char*, ...) { 59 } 60 61 // Constructor 62 //////////////////////////////////////////////////////////////////////////// 63 RTCM3Decoder::RTCM3Decoder(const QString& fileName) : GPSDecoder() { 64 65 const int LEAPSECONDS = 14; /* only needed for approx. time */ 66 67 // Ensure, that the Decoder uses the "old" convention for the data structure for Rinex2. Perlt 68 _Parser.rinex3 = 0; 69 70 time_t tim; 71 tim = time(0) - ((10*365+2+5)*24*60*60 + LEAPSECONDS); 72 73 memset(&_Parser, 0, sizeof(_Parser)); 74 _Parser.GPSWeek = tim/(7*24*60*60); 75 _Parser.GPSTOW = tim%(7*24*60*60); 76 59 77 connect(this, SIGNAL(newGPSEph(gpsephemeris*)), 60 78 (bncApp*) qApp, SLOT(slotNewGPSEph(gpsephemeris*))); 61 79 connect(this, SIGNAL(newGlonassEph(glonassephemeris*)), 62 80 (bncApp*) qApp, SLOT(slotNewGlonassEph(glonassephemeris*))); 63 }64 65 // Error Handling66 ////////////////////////////////////////////////////////////////////////////67 void RTCM3Error(const char*, ...) {68 }69 70 // Constructor71 ////////////////////////////////////////////////////////////////////////////72 RTCM3Decoder::RTCM3Decoder(const QString& fileName) : GPSDecoder() {73 74 const int LEAPSECONDS = 14; /* only needed for approx. time */75 76 // Ensure, that the Decoder uses the "old" convention for the data structure for Rinex2. Perlt77 _Parser.rinex3 = 0;78 79 time_t tim;80 tim = time(0) - ((10*365+2+5)*24*60*60 + LEAPSECONDS);81 82 memset(&_Parser, 0, sizeof(_Parser));83 _Parser.GPSWeek = tim/(7*24*60*60);84 _Parser.GPSTOW = tim%(7*24*60*60);85 81 86 82 // Sub-Decoder for Clock and Orbit Corrections … … 211 207 decoded = true; 212 208 gpsephemeris* ep = new gpsephemeris(_Parser.ephemerisGPS); 213 emit _ephSender.newGPSEph(ep);209 emit newGPSEph(ep); 214 210 } 215 211 … … 219 215 decoded = true; 220 216 glonassephemeris* ep = new glonassephemeris(_Parser.ephemerisGLONASS); 221 emit _ephSender.newGlonassEph(ep);217 emit newGlonassEph(ep); 222 218 } 223 219 }
Note:
See TracChangeset
for help on using the changeset viewer.