- Timestamp:
- Dec 20, 2008, 2:04:43 PM (16 years ago)
- Location:
- trunk/BNC/GPSS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/GPSS/gpssDecoder.cpp
r1313 r1314 17 17 18 18 #include "gpssDecoder.h" 19 #include "bncapp.h" 19 20 20 21 #define MODE_SEARCH 0 … … 41 42 _mode = MODE_SEARCH; 42 43 _recordSize = 0; 44 45 connect(this, SIGNAL(newGPSEph(gpsephemeris*)), 46 (bncApp*) qApp, SLOT(slotNewGPSEph(gpsephemeris*))); 43 47 } 44 48 … … 60 64 61 65 EPOCHHEADER epochHdr; 62 gpsephemeris gpsEph;63 66 64 67 unsigned offset = 0; … … 124 127 _mode = MODE_SEARCH; 125 128 } 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; 129 133 _mode = MODE_EPH_CRC; 130 134 } -
trunk/BNC/GPSS/gpssDecoder.h
r1311 r1314 22 22 private: 23 23 int _mode; 24 int _recordSize; 24 25 std::string _buffer; 25 26 } ;
Note:
See TracChangeset
for help on using the changeset viewer.