Changeset 1435 in ntrip for trunk/BNC/GPSS
- Timestamp:
- Jan 3, 2009, 12:57:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/GPSS/gpssDecoder.cpp
r1434 r1435 41 41 // Cyclic Redundancy Check 42 42 //////////////////////////////////////////////////////////////////////////// 43 unsigned short cal_crc( char *buf, int num) {43 unsigned short cal_crc(unsigned char *buf, int num) { 44 44 unsigned short polynomial = 0x8408; 45 45 unsigned short crc = 0; … … 109 109 epochHdr.n_svs * sizeof(t_obsInternal); 110 110 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); 112 112 113 113 cout << "Obs: " << crc << " " << crdCal << endl; … … 135 135 int checkLen = 2 + sizeof(recordSize) + sizeof(gpsephemeris); 136 136 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); 138 138 139 cout << " Obs: " << crc << " " << crdCal << endl;139 cout << "Eph: " << crc << " " << crdCal << endl; 140 140 141 141 gpsephemeris* gpsEph = new gpsephemeris;
Note:
See TracChangeset
for help on using the changeset viewer.