Changeset 6756 in ntrip for trunk


Ignore:
Timestamp:
Apr 2, 2015, 1:39:21 PM (9 years ago)
Author:
stuerze
Message:

bufix bdt week

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r6755 r6756  
    13361336  // ------------
    13371337  int fieldLen = 19;
    1338   _URAI = -1; // undefined in RINEX format
     1338  double TOEw;
     1339  _URAI = -1; // RINEX usage: set RTCM entry to be undefined
    13391340
    13401341  int pos[4];
     
    14251426    else if ( iLine == 5 ) {
    14261427      if ( readDbl(line, pos[0], fieldLen, _IDOT    ) ||
    1427            readDbl(line, pos[2], fieldLen, _TOEw)    ) {
     1428           readDbl(line, pos[2], fieldLen, TOEw)    ) {
    14281429        _checkState = bad;
    14291430        return;
     
    14571458  }
    14581459
    1459   _TOEw += 1356;  // BDT -> GPS week number
    1460   _TOE_bdt.set(int(_TOEw), _TOEs);
     1460  TOEw += 1356;  // BDT -> GPS week number
     1461  _TOE_bdt.set(int(TOEw), _TOEs);
    14611462
    14621463  // GPS->BDT
     
    14741475void t_ephBDS::set(const bdsephemeris* ee) {
    14751476
    1476   // RINEX File entries
    1477   // --------------------
     1477  // RTCM usage: set RINEX File entries to zero
     1478  // ------------------------------------------
    14781479  _TOTs = 0.0;
    14791480  _TOEs = 0.0;
    1480   _TOEw = 0.0;
    14811481
    14821482  _receptDateTime = currentDateAndTimeGPS();
     
    16971697    .arg(_OMEGADOT, 19, 'e', 12);
    16981698
    1699   double toew = _TOEw;
    1700   if (!toew) { // RTCM stream input
    1701     toew = double(_TOE_bdt.gpsw() - 1356.0);
    1702   }
    1703   out << QString(fmt)
    1704     .arg(_IDOT, 19, 'e', 12)
    1705     .arg(0.0,   19, 'e', 12)
    1706     .arg(toew,  19, 'e', 12)
    1707     .arg(0.0,   19, 'e', 12);
     1699
     1700  out << QString(fmt)
     1701    .arg(_IDOT,                             19, 'e', 12)
     1702    .arg(0.0,                               19, 'e', 12)
     1703    .arg(double(_TOE_bdt.gpsw() - 1356.0),  19, 'e', 12)
     1704    .arg(0.0,                               19, 'e', 12);
    17081705
    17091706  double ura = _URA; // RINEX file input
  • trunk/BNC/src/ephemeris.h

    r6755 r6756  
    194194  double  _SISA;             //  Signal In Space Accuracy
    195195  double  _E5aHS;            //  E5a Health Status
    196   double  _E5bHS;            //  E5a Health Status
     196  double  _E5bHS;            //  E5b Health Status
    197197  double  _BGD_1_5A;         //  group delay [s]
    198198  double  _BGD_1_5B;         //  group delay [s]
     
    285285  double  _TOTs;             //  [s] of BDT week; RINEX file entry
    286286  double  _TOEs;             //  [s] of BDT week; RINEX file entry
    287   double  _TOEw;             //  [-] BDT week; RINEX file entry
    288287};
    289288
Note: See TracChangeset for help on using the changeset viewer.