Changeset 9785 in ntrip
- Timestamp:
- Jun 29, 2022, 12:03:05 PM (3 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/RTCM3/RTCM3Decoder.cpp ¶
r9765 r9785 1587 1587 eph._prn.set('C', i); 1588 1588 1589 SKIPBITS(13) 1590 /* week */ 1589 GETBITS(eph._BDTweek, 13) 1591 1590 GETBITS(i, 4) 1592 1591 eph._URA = accuracyFromIndex(i, eph.type()); … … 1595 1594 GETBITS(i, 17) 1596 1595 i <<= 3; 1597 eph._TOC.setBDS( i * 1000);1596 eph._TOC.setBDS(eph._BDTweek, i); 1598 1597 GETFLOATSIGN(eph._clock_driftrate, 11, 1.0 / (double )(1 << 30) / (double )(1 << 30) / (double )(1 << 6)) 1599 1598 GETFLOATSIGN(eph._clock_drift, 22, 1.0 / (double )(1 << 30) / (double )(1 << 20)) … … 1618 1617 i <<= 3; 1619 1618 eph._TOEsec = i; 1620 eph._TOE.setBDS( i * 1000);1619 eph._TOE.setBDS(eph._BDTweek, i); 1621 1620 GETFLOATSIGN(eph._Cic, 18, 1.0 / (double )(1 << 30) / (double )(1 << 1)) 1622 1621 GETFLOATSIGN(eph._OMEGA0, 32, R2R_PI/(double)(1<<30)/(double)(1<<1)) … … 1637 1636 eph._navType = t_eph::D2; 1638 1637 } 1639 1640 1638 1641 1639 emit newBDSEph(eph); -
TabularUnified trunk/BNC/src/ephemeris.cpp ¶
r9774 r9785 1700 1700 else if ( iLine == 5 ) { 1701 1701 if ( readDbl(line, pos[0], fieldLen, _IDOT ) || 1702 readDbl(line, pos[2], fieldLen, _ TOEweek)) {1702 readDbl(line, pos[2], fieldLen, _BDTweek)) { 1703 1703 _checkState = bad; 1704 1704 return; … … 1732 1732 } 1733 1733 1734 _TOE.setBDS(int(_ TOEweek), _TOEsec);1734 _TOE.setBDS(int(_BDTweek), _TOEsec); 1735 1735 1736 1736 // remark: actually should be computed from second_tot … … 1940 1940 .arg(_sqrt_A, 19, 'e', 12); 1941 1941 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) 1951 1944 .arg(_Cic, 19, 'e', 12) 1952 1945 .arg(_OMEGA0, 19, 'e', 12) … … 1959 1952 .arg(_OMEGADOT, 19, 'e', 12); 1960 1953 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); 1973 1959 1974 1960 out << QString(fmt) … … 1979 1965 1980 1966 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 1982 1971 tots = _TOT; 1983 }1984 else {// RTCM stream input1985 tots = _TOE.bdssec();1986 1972 } 1987 1973 out << QString(fmt) -
TabularUnified trunk/BNC/src/ephemeris.h ¶
r9774 r9785 445 445 _TGD2 = 0.0; 446 446 _SatH1 = 0.0; 447 _TOW = 0.0;448 447 _TOEsec = 0.0; 449 _ TOEweek =-1.0;448 _BDTweek = 0.0; 450 449 _receptStaID = ""; 451 450 } … … 488 487 double _TGD2; // [s] 489 488 int _SatH1; // 490 double _TOW; // [s] of BDT week491 489 double _TOEsec; // [s] of BDT week 492 double _ TOEweek; // BDT weekwill be set only in case of RINEX file input490 double _BDTweek; // BDT week 493 491 }; 494 492 #endif
Note:
See TracChangeset
for help on using the changeset viewer.