Changeset 939 in ntrip for trunk/BNC/RTCM3/RTCM3Decoder.cpp


Ignore:
Timestamp:
Jun 9, 2008, 3:06:12 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r913 r939  
    5454#endif
    5555
    56 //
    57 ////////////////////////////////////////////////////////////////////////////
    58 ephSender::ephSender() {
     56// Error Handling
     57////////////////////////////////////////////////////////////////////////////
     58void RTCM3Error(const char*, ...) {
     59}
     60
     61// Constructor
     62////////////////////////////////////////////////////////////////////////////
     63RTCM3Decoder::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
    5977  connect(this, SIGNAL(newGPSEph(gpsephemeris*)),
    6078          (bncApp*) qApp, SLOT(slotNewGPSEph(gpsephemeris*)));
    6179  connect(this, SIGNAL(newGlonassEph(glonassephemeris*)),
    6280          (bncApp*) qApp, SLOT(slotNewGlonassEph(glonassephemeris*)));
    63 }
    64 
    65 // Error Handling
    66 ////////////////////////////////////////////////////////////////////////////
    67 void RTCM3Error(const char*, ...) {
    68 }
    69 
    70 // Constructor
    71 ////////////////////////////////////////////////////////////////////////////
    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. Perlt
    77   _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);
    8581
    8682  // Sub-Decoder for Clock and Orbit Corrections
     
    211207          decoded = true;
    212208          gpsephemeris* ep = new gpsephemeris(_Parser.ephemerisGPS);
    213           emit _ephSender.newGPSEph(ep);
     209          emit newGPSEph(ep);
    214210        }
    215211
     
    219215          decoded = true;
    220216          glonassephemeris* ep = new glonassephemeris(_Parser.ephemerisGLONASS);
    221           emit _ephSender.newGlonassEph(ep);
     217          emit newGlonassEph(ep);
    222218        }
    223219      }
Note: See TracChangeset for help on using the changeset viewer.