Changeset 8852 in ntrip for trunk/BNC/src/RTCM3/ephEncoder.cpp


Ignore:
Timestamp:
Nov 20, 2019, 2:38:50 PM (4 years ago)
Author:
stuerze
Message:

small improvement with respect to fit interval for GPS and QZSS at least if the flag is 0

File:
1 edited

Legend:

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

    r8813 r8852  
    1515  unsigned long long bitbuffer = 0;
    1616  int ura = indexFromAccuracy(eph._ura, eph.type());
    17   int L5Flag, SFlag;
     17  int L5Flag, SFlag,  fitIntervalFlag;
    1818
    1919  if (eph.type() == t_eph::QZSS) {
     
    4646    GPSADDBITS(6, eph._health)
    4747    GPSADDBITSFLOAT(8, eph._TGD, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    48     GPSADDBITS(10, eph._IODC)
    49     GPSADDBITS(1, eph._fitInterval)
     48    (eph._fitInterval == 2.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1;
     49    GPSADDBITS(1, fitIntervalFlag)
    5050    GPSADDBITS(3, 0) /* padding */
    5151  } else if (eph.type() == t_eph::IRNSS) {
     
    125125    GPSADDBITS(6, eph._health)
    126126    GPSADDBITS(1, eph._L2PFlag)
    127     GPSADDBITS(1, eph._fitInterval)
     127    (eph._fitInterval == 4.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1;
     128    GPSADDBITS(1, fitIntervalFlag)
    128129  }
    129130
Note: See TracChangeset for help on using the changeset viewer.