Ignore:
Timestamp:
Nov 20, 2019, 2:52:17 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
  • branches/BNC_2.12/src/RTCM3/ephEncoder.cpp

    r8814 r8854  
    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) {
     
    4747    GPSADDBITSFLOAT(8, eph._TGD, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1))
    4848    GPSADDBITS(10, eph._IODC)
    49     GPSADDBITS(1, eph._fitInterval)
     49    (eph._fitInterval == 2.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1;
     50    GPSADDBITS(1, fitIntervalFlag)
    5051    GPSADDBITS(3, 0) /* padding */
    5152 } else if (eph.type() == t_eph::IRNSS) {
     
    125126    GPSADDBITS(6, eph._health)
    126127    GPSADDBITS(1, eph._L2PFlag)
    127     GPSADDBITS(1, eph._fitInterval)
     128    (eph._fitInterval == 4.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1;
     129    GPSADDBITS(1, fitIntervalFlag)
    128130  }
    129131
Note: See TracChangeset for help on using the changeset viewer.