Changeset 1314 in ntrip for trunk/BNC/GPSS


Ignore:
Timestamp:
Dec 20, 2008, 2:04:43 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC/GPSS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/GPSS/gpssDecoder.cpp

    r1313 r1314  
    1717
    1818#include "gpssDecoder.h"
     19#include "bncapp.h"
    1920
    2021#define MODE_SEARCH     0
     
    4142  _mode       = MODE_SEARCH;
    4243  _recordSize = 0;
     44
     45  connect(this, SIGNAL(newGPSEph(gpsephemeris*)),
     46          (bncApp*) qApp, SLOT(slotNewGPSEph(gpsephemeris*)));
    4347}
    4448
     
    6064
    6165  EPOCHHEADER   epochHdr;
    62   gpsephemeris  gpsEph;
    6366
    6467  unsigned offset     = 0;
     
    124127          _mode = MODE_SEARCH;
    125128        } else {
    126           memcpy(&gpsEph, &_buffer[offset], sizeof(gpsEph));
    127           emit newGPSEph(&gpsEph);
    128           offset += sizeof(gpsEph) - 1;
     129          gpsephemeris* gpsEph = new gpsephemeris;
     130          memcpy(gpsEph, &_buffer[offset], sizeof(gpsephemeris));
     131          emit newGPSEph(gpsEph);
     132          offset += sizeof(gpsephemeris) - 1;
    129133          _mode = MODE_EPH_CRC;
    130134        }
  • trunk/BNC/GPSS/gpssDecoder.h

    r1311 r1314  
    2222 private:
    2323  int         _mode;
     24  int         _recordSize;
    2425  std::string _buffer;
    2526} ;
Note: See TracChangeset for help on using the changeset viewer.