Changeset 10996 in ntrip for trunk/BNC/src/RTCM3


Ignore:
Timestamp:
Aug 26, 2026, 11:04:41 AM (2 weeks ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/RTCM3/clock_and_orbit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.cpp

    r10994 r10996  
    5555  for (s = 0; s < CLOCKORBIT_SATNUM; ++s) {
    5656    for (i = 0; i < COBOFS_NUM; ++i) {
    57       if (co->NumberOfSat[s] && (type == COTYPE_AUTO || type == corbase[s] + i) &&
     57      if (co->NumberOfSat[s] &&
     58        (type == COTYPE_AUTO || type == corbase[s] + i) &&
    5859           (co->Supplied[i] || (i <= COBOFS_CLOCK &&  co->Supplied[COBOFS_COMBINED]) ||
    5960           (i == COBOFS_COMBINED && co->Supplied[COBOFS_ORBIT] && co->Supplied[COBOFS_CLOCK]))) {
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.cpp

    r10995 r10996  
    5454  for (s = 0; s < CLOCKORBIT_SATNUM; ++s) {
    5555    for (i = 0; i < COBOFS_NUM; ++i) {
    56       if (co->NumberOfSat[s] && (type == COTYPE_AUTO || type == corbase[s] + i) &&
    57            (co->Supplied[i] || (i <= COBOFS_CLOCK &&  co->Supplied[COBOFS_COMBINED]) ||
     56      if (co->NumberOfSat[s] && (type == COTYPE_AUTO || type == corbase[s] + i) && (co->Supplied[i] ||
     57        (i <= COBOFS_CLOCK &&  co->Supplied[COBOFS_COMBINED]) ||
    5858           (i == COBOFS_COMBINED && co->Supplied[COBOFS_ORBIT] && co->Supplied[COBOFS_CLOCK]))) {
    5959        status[s][i] = 1;
     
    480480  if ((unsigned char) h != 0xD3 || rs)
    481481    return GCOBR_UNKNOWNDATA;
     482
    482483  if (size < sizeofrtcmblock + 3) /* 3 header bytes already removed */
    483484    return GCOBR_MESSAGEEXCEEDSBUFFER;
     485
    484486  if (CRC24(sizeofrtcmblock + 3, (const unsigned char *) blockstart) !=
    485487      (uint32_t) ((((unsigned char) buffer[sizeofrtcmblock]) << 16) |
     
    487489          (((unsigned char) buffer[sizeofrtcmblock + 2]))))
    488490    return GCOBR_CRCMISMATCH;
     491
    489492  size = sizeofrtcmblock; /* reduce size, so overflows are detected */
    490493
    491494  D_RTCM_MESSAGE_NUMBER(type)
     495
    492496#ifdef BNC_DEBUG_SSR
    493497  fprintf(stderr, "type %d size %d\n",type,(int)sizeofrtcmblock);
    494498#endif
     499
    495500  if (bytesused)
    496501    *bytesused = sizeofrtcmblock + 6;
     502   
    497503  if (type == VTEC_BASE) {
    498504    unsigned int l, o, d;
     
    547553    return mmi ? GCOBR_MESSAGEFOLLOWS : GCOBR_OK;
    548554  }
     555
    549556  for (s = CLOCKORBIT_SATNUM; s-- > 0;) {
    550557    if (type == PBTYPE_BASE + s) {
     
    600607          D_GNSS_SIGNAL_IDENTIFIER(pb->Sat[pos].Biases[j].Type)
    601608          D_INTEGER_INDICATOR(pb->Sat[pos].Biases[j].IntegerIndicator)
    602           D_WIDE_LANE_INDICATOR(pb->Sat[pos].Biases[j].WidelaneGroupIndicator)
     609         // D_WIDE_LANE_INDICATOR(pb->Sat[pos].Biases[j].WidelaneGroupIndicator)
    603610          D_DISCONTINUITY_COUNTER(pb->Sat[pos].Biases[j].DiscontinuityCounter)
    604611          D_PHASE_BIAS_CORRECTION(pb->Sat[pos].Biases[j].Bias)
    605612#ifdef BNC_DEBUG_SSR
    606             fprintf(stderr, "t%02d int %d wl %d disc %d b %8.4f ",
     613            fprintf(stderr, "t%02d int %d /*wl %d*/ disc %d b %8.4f ",
    607614                    pb->Sat[pos].Biases[j].Type,
    608615                                        pb->Sat[pos].Biases[j].IntegerIndicator,
    609                                         pb->Sat[pos].Biases[j].WidelaneGroupIndicator,
     616                                        //pb->Sat[pos].Biases[j].WidelaneGroupIndicator,
    610617                                        pb->Sat[pos].Biases[j].DiscontinuityCounter,
    611618                                        pb->Sat[pos].Biases[j].Bias);
     
    625632    else if (type >= corbase[s]) {
    626633      unsigned int corrOffset = type - corbase[s];
    627       if (corrOffset == COBOFS_ORBIT) {
     634      if      (corrOffset == COBOFS_ORBIT) {
    628635          if (!co)
    629636            return GCOBR_NOCLOCKORBITPARAMETER;
     
    925932          }
    926933      }
    927       else if (corrOffset ==  COBOFS_CBIAS) {
     934      else if (corrOffset == COBOFS_CBIAS) {
    928935          if (!b)
    929936            return GCOBR_NOCODEBIASPARAMETER;
Note: See TracChangeset for help on using the changeset viewer.