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


Ignore:
Timestamp:
May 4, 2026, 4:52:14 PM (10 days ago)
Author:
stuerze
Message:

bugfix in NavIC broadcast epehemeris encoding/decoding

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

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3Decoder.cpp

    r10694 r10899  
    15491549    GETFLOATSIGN(eph._Crs,  15, 1.0 / (double )(1 <<  4))
    15501550    GETFLOATSIGN(eph._IDOT, 14, R2R_PI/(double)(1<<30)/(double)(1<<13))
    1551     SKIPBITS(2)
    15521551    GETFLOATSIGN(eph._M0,   32, R2R_PI/(double)(1<<30)/(double)(1<< 1))
    15531552    GETBITS(i, 16)
     
    15861585    GETFLOATSIGN(eph._OMEGADOT, 22, R2R_PI/(double)(1<<30)/(double)(1<<11))
    15871586    GETFLOATSIGN(eph._i0,       32, R2R_PI/(double)(1<<30)/(double)(1<< 1))
    1588     SKIPBITS(2)
     1587    GETBITS(eph._s_bits_after_IDOT, 2)
     1588    GETBITS(eph._s_bits_after_i0, 2)
     1589
    15891590    eph._TOT = 0.9999e9;
    15901591    eph._type = t_eph::LNAV;
  • trunk/BNC/src/RTCM3/ephEncoder.cpp

    r10619 r10899  
    8787    GPSADDBITSFLOAT(15, eph._Crs, 1.0/static_cast<double>(1<< 4))
    8888    GPSADDBITSFLOAT(14, eph._IDOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13))
    89     GPSADDBITS(2, 0) /* padding */
    9089    GPSADDBITSFLOAT(32, eph._M0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    9190    GPSADDBITS(16, static_cast<int>(eph._TOEsec)>>4)
     
    9695    GPSADDBITSFLOAT(22, eph._OMEGADOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<11))
    9796    GPSADDBITSFLOAT(32, eph._i0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    98     GPSADDBITS(2, 0) /* padding */
     97    GPSADDBITS(2, eph._s_bits_after_IDOT)
     98    GPSADDBITS(2, eph._s_bits_after_i0)
    9999  } else {
    100100    GPSADDBITS(12, 1019)
Note: See TracChangeset for help on using the changeset viewer.