Changeset 11002 in ntrip for trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.cpp
- Timestamp:
- Sep 1, 2026, 2:51:30 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm_new.cpp
r11001 r11002 566 566 pb->messageType = type; 567 567 /* Header Part*/ 568 /* pb->NumberOfSat[s] is no longer cleared by the caller between 569 * messages (kept intact so a subsequent Extended Phase Bias message 570 * can correlate against it), so this decode must start each fresh 571 * message with an empty satellite list itself rather than relying 572 * on D_..._EPOCH_TIME_CHECK's stale-data check, which would 573 * otherwise reject every message but the first with GCOBR_TIMEMISMATCH. */ 574 pb->NumberOfSat[s] = 0; 568 575 switch (s) { 569 576 case CLOCKORBIT_SATGPS: … … 572 579 case CLOCKORBIT_SATSBAS: 573 580 case CLOCKORBIT_SATBDS: 574 D_GPS_EPOCH_TIME _CHECK(pb->EpochTime[s], pb->NumberOfSat[s])581 D_GPS_EPOCH_TIME(pb->EpochTime[s]) 575 582 break; 576 583 case CLOCKORBIT_SATGLONASS: 577 D_GLONASS_EPOCH_TIME _CHECK(pb->EpochTime[s], pb->NumberOfSat[s])584 D_GLONASS_EPOCH_TIME(pb->EpochTime[s]) 578 585 break; 579 586 } … … 665 672 ExtendedPhaseBiasPropertyID == pb->ExtendedPhaseBiasPropertyID) { 666 673 for (i = 0; i < pb->NumberOfSat[s]; ++i) { 667 for (pos = satoffset[s]; 668 pos < satoffset[s] + pb->NumberOfSat[s]; 669 ++pos) 670 ; 674 /* The wire format does not repeat the satellite ID here: entries 675 * are implicitly in the same satellite/signal order as the 676 * correlated Phase Bias message, so the i-th satellite is simply 677 * the i-th one already recorded for this system. */ 678 pos = satoffset[s] + i; 671 679 if (pos >= satoffset[s + 1]) 672 680 return GCOBR_DATAMISMATCH; 673 else if (pos == pb->NumberOfSat[s] + satoffset[s])674 ++pb->NumberOfSat[s];675 681 #ifdef BNC_DEBUG_SSR 676 682 fprintf(stderr, "id %2d ", pb->Sat[pos].ID);
Note:
See TracChangeset
for help on using the changeset viewer.
