- Timestamp:
- May 20, 2015, 10:25:37 AM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r6812 r6843 1309 1309 // remark: actually should be computed from second_tot 1310 1310 // but it seems to be unreliable in RINEX files 1311 _TOT = _TOC.bdssec();1311 //_TOT = _TOC.bdssec(); 1312 1312 } 1313 1313 … … 1469 1469 .arg(_sqrt_A, 19, 'e', 12); 1470 1470 1471 double toes = _TOEsec; 1472 if (!toes) { // RTCM stream input 1471 double toes = 0.0; 1472 if (_TOEweek > -1.0) {// RINEX input 1473 toes = _TOEsec; 1474 } 1475 else {// RTCM stream input 1473 1476 toes = _TOE.bdssec(); 1474 1477 } 1475 1478 out << QString(fmt) 1476 .arg(toes, 19, 'e', 12)1479 .arg(toes, 19, 'e', 12) 1477 1480 .arg(_Cic, 19, 'e', 12) 1478 1481 .arg(_OMEGA0, 19, 'e', 12) … … 1485 1488 .arg(_OMEGADOT, 19, 'e', 12); 1486 1489 1487 out << QString(fmt) 1488 .arg(_IDOT, 19, 'e', 12) 1489 .arg(0.0, 19, 'e', 12) 1490 .arg(double(_TOE.bdsw()), 19, 'e', 12) 1491 .arg(0.0, 19, 'e', 12); 1490 double toew = 0.0; 1491 if (_TOEweek > -1.0) {// RINEX input 1492 toew = _TOEweek; 1493 } 1494 else {// RTCM stream input 1495 toew = double(_TOE.bdsw()); 1496 } 1497 out << QString(fmt) 1498 .arg(_IDOT, 19, 'e', 12) 1499 .arg(0.0, 19, 'e', 12) 1500 .arg(toew, 19, 'e', 12) 1501 .arg(0.0, 19, 'e', 12); 1492 1502 1493 1503 out << QString(fmt) … … 1497 1507 .arg(_TGD2, 19, 'e', 12); 1498 1508 1499 double tots = _TOT; 1500 if (!tots) { // RTCM stream input 1509 double tots = 0.0; 1510 if (_TOEweek > -1.0) {// RINEX input 1511 tots = _TOT; 1512 } 1513 else {// RTCM stream input 1501 1514 tots = _TOE.bdssec(); 1502 1515 } -
trunk/BNC/src/ephemeris.h
r6812 r6843 248 248 friend class RTCM3Decoder; 249 249 public: 250 t_ephBDS() {}250 t_ephBDS() : _TOEweek(-1.0) {} 251 251 t_ephBDS(float rnxVersion, const QStringList& lines); 252 252 virtual ~t_ephBDS() {} … … 286 286 double _TGD2; // [s] 287 287 int _SatH1; // 288 double _TOW; // [s] of BDT week ; RINEX file entry289 double _TOEsec; // [s] of BDT week ; RINEX file entry290 double _TOEweek; 288 double _TOW; // [s] of BDT week 289 double _TOEsec; // [s] of BDT week 290 double _TOEweek; // BDT week will be set only in case of RINEX file input 291 291 }; 292 292
Note:
See TracChangeset
for help on using the changeset viewer.