Changeset 9785 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jun 29, 2022, 12:03:05 PM (22 months ago)
Author:
stuerze
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

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

    r9765 r9785  
    15871587    eph._prn.set('C', i);
    15881588
    1589     SKIPBITS(13)
    1590     /* week */
     1589    GETBITS(eph._BDTweek, 13)
    15911590    GETBITS(i, 4)
    15921591    eph._URA = accuracyFromIndex(i, eph.type());
     
    15951594    GETBITS(i, 17)
    15961595    i <<= 3;
    1597     eph._TOC.setBDS(i * 1000);
     1596    eph._TOC.setBDS(eph._BDTweek, i);
    15981597    GETFLOATSIGN(eph._clock_driftrate, 11,  1.0 / (double )(1 << 30) / (double )(1 << 30) / (double )(1 << 6))
    15991598    GETFLOATSIGN(eph._clock_drift,     22,  1.0 / (double )(1 << 30) / (double )(1 << 20))
     
    16181617    i <<= 3;
    16191618    eph._TOEsec = i;
    1620     eph._TOE.setBDS(i * 1000);
     1619    eph._TOE.setBDS(eph._BDTweek, i);
    16211620    GETFLOATSIGN(eph._Cic,      18, 1.0 / (double )(1 << 30) / (double )(1 << 1))
    16221621    GETFLOATSIGN(eph._OMEGA0,   32, R2R_PI/(double)(1<<30)/(double)(1<<1))
     
    16371636      eph._navType = t_eph::D2;
    16381637    }
    1639 
    16401638
    16411639    emit newBDSEph(eph);
  • trunk/BNC/src/ephemeris.cpp

    r9774 r9785  
    17001700    else if ( iLine == 5 ) {
    17011701      if ( readDbl(line, pos[0], fieldLen, _IDOT    ) ||
    1702            readDbl(line, pos[2], fieldLen, _TOEweek)) {
     1702           readDbl(line, pos[2], fieldLen, _BDTweek)) {
    17031703        _checkState = bad;
    17041704        return;
     
    17321732  }
    17331733
    1734   _TOE.setBDS(int(_TOEweek), _TOEsec);
     1734  _TOE.setBDS(int(_BDTweek), _TOEsec);
    17351735
    17361736  // remark: actually should be computed from second_tot
     
    19401940    .arg(_sqrt_A, 19, 'e', 12);
    19411941
    1942   double toes = 0.0;
    1943   if (_TOEweek > -1.0) {// RINEX input
    1944     toes = _TOEsec;
    1945   }
    1946   else {// RTCM stream input
    1947     toes = _TOE.bdssec();
    1948   }
    1949   out << QString(fmt)
    1950     .arg(toes,    19, 'e', 12)
     1942  out << QString(fmt)
     1943    .arg(_TOEsec, 19, 'e', 12)
    19511944    .arg(_Cic,    19, 'e', 12)
    19521945    .arg(_OMEGA0, 19, 'e', 12)
     
    19591952    .arg(_OMEGADOT, 19, 'e', 12);
    19601953
    1961   double toew = 0.0;
    1962   if (_TOEweek > -1.0) {// RINEX input
    1963     toew = _TOEweek;
    1964   }
    1965   else {// RTCM stream input
    1966     toew = double(_TOE.bdsw());
    1967   }
    1968   out << QString(fmt)
    1969     .arg(_IDOT, 19, 'e', 12)
    1970     .arg(0.0,   19, 'e', 12)
    1971     .arg(toew,  19, 'e', 12)
    1972     .arg(0.0,   19, 'e', 12);
     1954  out << QString(fmt)
     1955    .arg(_IDOT,    19, 'e', 12)
     1956    .arg(0.0,      19, 'e', 12)
     1957    .arg(_BDTweek, 19, 'e', 12)
     1958    .arg(0.0,      19, 'e', 12);
    19731959
    19741960  out << QString(fmt)
     
    19791965
    19801966  double tots = 0.0;
    1981   if (_TOEweek > -1.0) {// RINEX input
     1967  if (_receptDateTime.isValid()) {// RTCM stream input
     1968    tots = _TOE.bdssec();
     1969  }
     1970  else { // RINEX input
    19821971    tots = _TOT;
    1983   }
    1984   else {// RTCM stream input
    1985     tots = _TOE.bdssec();
    19861972  }
    19871973  out << QString(fmt)
  • trunk/BNC/src/ephemeris.h

    r9774 r9785  
    445445   _TGD2            = 0.0;
    446446   _SatH1           = 0.0;
    447    _TOW             = 0.0;
    448447   _TOEsec          = 0.0;
    449    _TOEweek         =-1.0;
     448   _BDTweek         = 0.0;
    450449   _receptStaID     = "";
    451450 }
     
    488487  double  _TGD2;             //  [s]
    489488  int     _SatH1;            //
    490   double  _TOW;              //  [s] of BDT week
    491489  double  _TOEsec;           //  [s] of BDT week
    492   double  _TOEweek;          //  BDT week will be set only in case of RINEX file input
     490  double  _BDTweek;          //  BDT week
    493491};
    494492#endif
Note: See TracChangeset for help on using the changeset viewer.