Changeset 1435 in ntrip


Ignore:
Timestamp:
Jan 3, 2009, 12:57:05 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1434 r1435  
    4141// Cyclic Redundancy Check
    4242////////////////////////////////////////////////////////////////////////////
    43 unsigned short cal_crc(char *buf, int num) {
     43unsigned short cal_crc(unsigned char *buf, int num) {
    4444  unsigned short polynomial = 0x8408;
    4545  unsigned short crc = 0;
     
    109109                         epochHdr.n_svs * sizeof(t_obsInternal);
    110110          memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
    111           int crdCal = cal_crc(_buffer.data(), checkLen);
     111          int crdCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
    112112
    113113          cout << "Obs: " << crc << " " << crdCal << endl;
     
    135135        int checkLen = 2 + sizeof(recordSize) + sizeof(gpsephemeris);
    136136        memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
    137         int crdCal = cal_crc(_buffer.data(), checkLen);
     137        int crdCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
    138138
    139         cout << "Obs: " << crc << " " << crdCal << endl;
     139        cout << "Eph: " << crc << " " << crdCal << endl;
    140140
    141141        gpsephemeris* gpsEph = new gpsephemeris;
Note: See TracChangeset for help on using the changeset viewer.