Changeset 10224 in ntrip for trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h
- Timestamp:
- Oct 13, 2023, 11:49:42 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h
r9518 r10224 16 16 #include <math.h> 17 17 #include "t_prn.h" 18 #include "bncutils.h" 18 19 19 20 enum IGS_NUMBERS { … … 422 423 #define STARTDATA \ 423 424 size_t ressize=0; \ 424 char *blockstart ; \425 int numbits ; \425 char *blockstart=0; \ 426 int numbits=0; \ 426 427 uint64_t bitbuffer=0; 427 428 … … 518 519 #define T_VTEC_QUALITY_INDICATOR(a) SCALEADDBITS( 9, 20.0, a) /* DF478, IDF041 */ 519 520 520 static uint32_t CRC24(long size, const unsigned char *buf) {521 uint32_t crc = 0;522 int ii;523 while (size--) {524 crc ^= (*buf++) << (16);525 for (ii = 0; ii < 8; ii++) {526 crc <<= 1;527 if (crc & 0x1000000)528 crc ^= 0x01864cfb;529 }530 }531 return crc;532 }533 534 521 static double URAToValue(int ura) { 535 522 int urac, urav;
Note:
See TracChangeset
for help on using the changeset viewer.