Changeset 6843 in ntrip


Ignore:
Timestamp:
May 20, 2015, 10:25:37 AM (9 years ago)
Author:
stuerze
Message:

some fixes regarding BDS ephemerides

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ephemeris.cpp

    r6812 r6843  
    13091309  // remark: actually should be computed from second_tot
    13101310  //         but it seems to be unreliable in RINEX files
    1311   _TOT = _TOC.bdssec();
     1311  //_TOT = _TOC.bdssec();
    13121312}
    13131313
     
    14691469    .arg(_sqrt_A, 19, 'e', 12);
    14701470
    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
    14731476    toes = _TOE.bdssec();
    14741477  }
    14751478  out << QString(fmt)
    1476     .arg(toes,   19, 'e', 12)
     1479    .arg(toes,    19, 'e', 12)
    14771480    .arg(_Cic,    19, 'e', 12)
    14781481    .arg(_OMEGA0, 19, 'e', 12)
     
    14851488    .arg(_OMEGADOT, 19, 'e', 12);
    14861489
    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);
    14921502
    14931503  out << QString(fmt)
     
    14971507    .arg(_TGD2,          19, 'e', 12);
    14981508
    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
    15011514    tots = _TOE.bdssec();
    15021515  }
  • trunk/BNC/src/ephemeris.h

    r6812 r6843  
    248248 friend class RTCM3Decoder;
    249249 public:
    250  t_ephBDS() {}
     250 t_ephBDS() : _TOEweek(-1.0) {}
    251251 t_ephBDS(float rnxVersion, const QStringList& lines);
    252252  virtual ~t_ephBDS() {}
     
    286286  double  _TGD2;             //  [s]   
    287287  int     _SatH1;            //
    288   double  _TOW;              //  [s] of BDT week; RINEX file entry
    289   double  _TOEsec;           //  [s] of BDT week; RINEX file entry
    290   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
    291291};
    292292
Note: See TracChangeset for help on using the changeset viewer.