Changeset 10996 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Aug 26, 2026, 11:04:41 AM (2 weeks ago)
- Location:
- trunk/BNC/src/RTCM3/clock_and_orbit
- Files:
-
- 2 edited
-
clock_orbit_rtcm.cpp (modified) (1 diff)
-
clock_orbit_rtcm_new.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.cpp
r10994 r10996 55 55 for (s = 0; s < CLOCKORBIT_SATNUM; ++s) { 56 56 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) && 58 59 (co->Supplied[i] || (i <= COBOFS_CLOCK && co->Supplied[COBOFS_COMBINED]) || 59 60 (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 54 54 for (s = 0; s < CLOCKORBIT_SATNUM; ++s) { 55 55 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]) || 58 58 (i == COBOFS_COMBINED && co->Supplied[COBOFS_ORBIT] && co->Supplied[COBOFS_CLOCK]))) { 59 59 status[s][i] = 1; … … 480 480 if ((unsigned char) h != 0xD3 || rs) 481 481 return GCOBR_UNKNOWNDATA; 482 482 483 if (size < sizeofrtcmblock + 3) /* 3 header bytes already removed */ 483 484 return GCOBR_MESSAGEEXCEEDSBUFFER; 485 484 486 if (CRC24(sizeofrtcmblock + 3, (const unsigned char *) blockstart) != 485 487 (uint32_t) ((((unsigned char) buffer[sizeofrtcmblock]) << 16) | … … 487 489 (((unsigned char) buffer[sizeofrtcmblock + 2])))) 488 490 return GCOBR_CRCMISMATCH; 491 489 492 size = sizeofrtcmblock; /* reduce size, so overflows are detected */ 490 493 491 494 D_RTCM_MESSAGE_NUMBER(type) 495 492 496 #ifdef BNC_DEBUG_SSR 493 497 fprintf(stderr, "type %d size %d\n",type,(int)sizeofrtcmblock); 494 498 #endif 499 495 500 if (bytesused) 496 501 *bytesused = sizeofrtcmblock + 6; 502 497 503 if (type == VTEC_BASE) { 498 504 unsigned int l, o, d; … … 547 553 return mmi ? GCOBR_MESSAGEFOLLOWS : GCOBR_OK; 548 554 } 555 549 556 for (s = CLOCKORBIT_SATNUM; s-- > 0;) { 550 557 if (type == PBTYPE_BASE + s) { … … 600 607 D_GNSS_SIGNAL_IDENTIFIER(pb->Sat[pos].Biases[j].Type) 601 608 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) 603 610 D_DISCONTINUITY_COUNTER(pb->Sat[pos].Biases[j].DiscontinuityCounter) 604 611 D_PHASE_BIAS_CORRECTION(pb->Sat[pos].Biases[j].Bias) 605 612 #ifdef BNC_DEBUG_SSR 606 fprintf(stderr, "t%02d int %d wl %ddisc %d b %8.4f ",613 fprintf(stderr, "t%02d int %d /*wl %d*/ disc %d b %8.4f ", 607 614 pb->Sat[pos].Biases[j].Type, 608 615 pb->Sat[pos].Biases[j].IntegerIndicator, 609 pb->Sat[pos].Biases[j].WidelaneGroupIndicator, 616 //pb->Sat[pos].Biases[j].WidelaneGroupIndicator, 610 617 pb->Sat[pos].Biases[j].DiscontinuityCounter, 611 618 pb->Sat[pos].Biases[j].Bias); … … 625 632 else if (type >= corbase[s]) { 626 633 unsigned int corrOffset = type - corbase[s]; 627 if (corrOffset == COBOFS_ORBIT) { 634 if (corrOffset == COBOFS_ORBIT) { 628 635 if (!co) 629 636 return GCOBR_NOCLOCKORBITPARAMETER; … … 925 932 } 926 933 } 927 else if (corrOffset == COBOFS_CBIAS) {934 else if (corrOffset == COBOFS_CBIAS) { 928 935 if (!b) 929 936 return GCOBR_NOCODEBIASPARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.
