Changeset 6619 in ntrip


Ignore:
Timestamp:
Mar 3, 2015, 10:27:17 AM (10 years ago)
Author:
stuerze
Message:

some fixes BDS encoder

File:
1 edited

Legend:

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

    r6615 r6619  
    349349  BDSADDBITS(12, RTCM3ID_BDS)
    350350  BDSADDBITS(6, eph._prn.number())
    351   BDSADDBITS(13, eph._TOC.gpsw())
     351  BDSADDBITS(13, eph._TOC_bdt.gpsw() - 1356.0)
    352352  BDSADDBITS(4, 15);// URAI = 15: no accuracy prediction
    353353  BDSADDBITSFLOAT(14, eph._IDOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13))
    354354  BDSADDBITS(5, eph._AODE)
    355   BDSADDBITS(17, static_cast<int>(eph._TOC.gpssec())>>3)
     355  BDSADDBITS(17, static_cast<int>(eph._TOC_bdt.gpssec())>>3)
    356356  BDSADDBITSFLOAT(11, eph._clock_driftrate, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<6))
    357357  BDSADDBITSFLOAT(22, eph._clock_drift, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<20))
     
    365365  BDSADDBITSFLOAT(18, eph._Cus, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    366366  BDSADDBITSFLOAT(32, eph._sqrt_A, 1.0/static_cast<double>(1<<19))
    367   BDSADDBITS(17, static_cast<int>(eph._TOE.gpssec())>>3)
     367  BDSADDBITS(17, static_cast<int>(eph._TOE_bdt.gpssec())>>3)
    368368  BDSADDBITSFLOAT(18, eph._Cic, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    369369  BDSADDBITSFLOAT(32, eph._OMEGA0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    370370  BDSADDBITSFLOAT(18, eph._Cis, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    371371  BDSADDBITSFLOAT(32, eph._i0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    372   BDSADDBITSFLOAT(18, eph._Crc, 1.0/static_cast<double>(1<<8))
     372  BDSADDBITSFLOAT(18, eph._Crc, 1.0/static_cast<double>(1<<6))
    373373  BDSADDBITSFLOAT(32, eph._omega, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    374374  BDSADDBITSFLOAT(24, eph._OMEGADOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13))
Note: See TracChangeset for help on using the changeset viewer.