Changeset 8930 in ntrip


Ignore:
Timestamp:
Apr 30, 2020, 11:06:06 AM (3 months ago)
Author:
stuerze
Message:

GPS fit intervall: different specifications in differet RINEX versions are now considerred

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/ephemeris.cpp

    r8929 r8930  
    298298      }
    299299    }
    300 
    301300    else if ( iLine == 7 ) {
    302301      if ( readDbl(line, pos[0], fieldLen, _TOT) ) {
     
    487486  }
    488487  // fitInterval
    489   if (type() == t_eph::IRNSS) {            // not valid for IRNSS
     488  if (type() == t_eph::IRNSS) {// not valid for IRNSS
    490489    out << QString(fmt)
    491490      .arg(tot,          19, 'e', 12)
     
    495494  }
    496495  else {
    497     double fitIntervalRnx = _fitInterval; // specified as time period in hours for GPS since RINEX 3.03
    498     if      (type() == t_eph::GPS && version < 3.03) { // specified as flag in versions < 3.03
    499       (_fitInterval == 4.0) ? fitIntervalRnx = 0.0 : fitIntervalRnx = 1.0;
    500     }
    501     else if (type() == t_eph::QZSS) {    // specified as flag for QZSS
     496    double fitIntervalRnx;
     497    if      (type() == t_eph::GPS) {
     498      if (version < 3.03) { // specified as flag)
     499        (_fitInterval == 4.0) ? fitIntervalRnx = 0.0 : fitIntervalRnx = 1.0;
     500      }
     501      else {
     502        fitIntervalRnx = _fitInterval; // specified as time period in hours
     503      }
     504    }
     505    else if (type() == t_eph::QZSS) {    // specified as flag
    502506      (_fitInterval == 2.0) ? fitIntervalRnx = 0.0 : fitIntervalRnx = 1.0;
    503507    }
Note: See TracChangeset for help on using the changeset viewer.