Changeset 8925 in ntrip


Ignore:
Timestamp:
Apr 30, 2020, 8:11:54 AM (5 years ago)
Author:
stuerze
Message:

bug fixed: RINEX 3.04 QZSS fit interval is specified as flag

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r8903 r8925  
    301301        return;
    302302      }
    303       readDbl(line, pos[1], fieldLen, _fitInterval); // _fitInterval optional
     303      // Rinex 3.04: fitInterval is specified as time period for GPS,
     304      //             as flag for QZSS and not valid for IRNSS
     305      double fitIntervalRnx;
     306      readDbl(line, pos[1], fieldLen, fitIntervalRnx);
     307      if (type() == t_eph::QZSS) {
     308        _fitInterval = fitIntervalFromFlag(fitIntervalRnx, _IODC, t_eph::QZSS);
     309      }
    304310    }
    305311  }
     
    478484  }
    479485  else {
     486    // Rinex 3.04: fitInterval is specified as flag for QZSS
     487    //             but as time period for GPS
     488    double fitIntervalRnx = _fitInterval; // GPS
     489    if (type() == t_eph::QZSS) {
     490      (_fitInterval == 2.0) ? fitIntervalRnx = 0.0 : fitIntervalRnx = 1.0;
     491    }
    480492    out << QString(fmt)
    481       .arg(tot,          19, 'e', 12)
    482       .arg(_fitInterval, 19, 'e', 12)
    483       .arg("",           19, QChar(' '))
    484       .arg("",           19, QChar(' '));
     493      .arg(tot,            19, 'e', 12)
     494      .arg(fitIntervalRnx, 19, 'e', 12)
     495      .arg("",             19, QChar(' '))
     496      .arg("",             19, QChar(' '));
    485497  }
    486498
  • trunk/BNC/src/ephemeris.h

    r8799 r8925  
    143143
    144144  double  _TOT;             // Transmission time
    145   double  _fitInterval;     // Fit interval (not valid for IRNSS)
     145  double  _fitInterval;     // Fit interval in hours (not valid for IRNSS)
    146146};
    147147
Note: See TracChangeset for help on using the changeset viewer.