Changeset 2709 in ntrip for trunk/BNC/GPSS


Ignore:
Timestamp:
Nov 18, 2010, 12:28:40 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r2585 r2709  
    1 \
     1
    22/* -------------------------------------------------------------------------
    33 * BKG NTRIP Client
     
    8787               sizeof(epochHdr));
    8888       
    89         reqLength += epochHdr.n_svs * sizeof(t_obsInternal) + sizeof(crc) + 1;
     89        reqLength += epochHdr.n_svs * sizeof(t_obs) + sizeof(crc) + 1;
    9090
    9191        if (_buffer.length() >= reqLength) {
    9292
    9393          int checkLen = 2 + sizeof(recordSize) + sizeof(EPOCHHEADER) +
    94                          epochHdr.n_svs * sizeof(t_obsInternal);
     94                         epochHdr.n_svs * sizeof(t_obs);
    9595          memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
    9696          int crcCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
     
    100100              obsFound = true;
    101101              t_obs* obs = new t_obs();
    102               memcpy(&(obs->_o), _buffer.data() + 2 + sizeof(recordSize) +
    103                                  sizeof(epochHdr) + is * sizeof(t_obsInternal),
    104                      sizeof(t_obsInternal));
     102              memcpy(obs, _buffer.data() + 2 + sizeof(recordSize) +
     103                     sizeof(epochHdr) + is * sizeof(t_obs), sizeof(t_obs));
    105104              _obsList.push_back(obs);
    106105            }
Note: See TracChangeset for help on using the changeset viewer.