Ignore:
Timestamp:
Oct 13, 2023, 11:49:42 AM (12 months ago)
Author:
stuerze
Message:

bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h

    r9518 r10224  
    1616#include <math.h>
    1717#include "t_prn.h"
     18#include "bncutils.h"
    1819
    1920enum IGS_NUMBERS {
     
    422423#define STARTDATA \
    423424  size_t ressize=0; \
    424   char *blockstart; \
    425   int numbits; \
     425  char *blockstart=0; \
     426  int numbits=0; \
    426427  uint64_t bitbuffer=0;
    427428
     
    518519#define T_VTEC_QUALITY_INDICATOR(a)      SCALEADDBITS( 9,       20.0, a) /* DF478, IDF041 */
    519520
    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 
    534521static double URAToValue(int ura) {
    535522  int urac, urav;
Note: See TracChangeset for help on using the changeset viewer.