Changeset 9785 in ntrip for trunk/BNC/src/ephemeris.cpp


Ignore:
Timestamp:
Jun 29, 2022, 12:03:05 PM (22 months ago)
Author:
stuerze
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.