Changeset 11192 in ntrip for trunk/BNC/src/ephemeris.cpp


Ignore:
Timestamp:
Nov 10, 2026, 12:13:23 PM (less than one hour ago)
Author:
stuerze
Message:

rinex version 4.02 now fully supported

File:
1 edited

Legend:

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

    r11158 r11192  
    11991199  }
    12001200
    1201   if (rnxVersion >= 3.05) {
     1201  if (type() == t_eph::L1OC || type() == t_eph::L3OC) {
     1202    nLines = 9; // RINEX 4.02 Tables A16/A17
     1203  }
     1204  else if (rnxVersion >= 3.05) {
    12021205    nLines += 1;
    12031206  } else {
    … …  
    12661269      _TOC = _TOC + _gps_utc;
    12671270      int nd = int((_TOC.gpssec())) / (24.0 * 60.0 * 60.0);
     1271      // FDMA: -TauN, +GammaN, message frame time
     1272      // L1OC/L3OC: -TauN, +GammaN, clock drift rate Beta (RINEX 4.02 A16/A17)
     1273      double& third = (type() == t_eph::L1OC || type() == t_eph::L3OC) ? _beta : _tki;
    12681274      if (   readDbl(line, pos[1], fieldLen, _tau)
    12691275          || readDbl(line, pos[2], fieldLen, _gamma)
    1270           || readDbl(line, pos[3], fieldLen, _tki)) {
     1276          || readDbl(line, pos[3], fieldLen, third)) {
    12711277        _checkState = bad;
    12721278        return;
    12731279      }
    1274       _tki -= nd * 86400.0;
     1280      if (type() != t_eph::L1OC && type() != t_eph::L3OC) {
     1281        _tki -= nd * 86400.0;
     1282      }
    12751283      _tau = -_tau;
    12761284    }
    … …  
    15881596  QTextStream out(&rnxStr);
    15891597
     1598  bool cdma = (type() == t_eph::L1OC || type() == t_eph::L3OC);
    15901599  out
    15911600      << QString("%1%2%3\n")
    15921601      .arg(-_tau,               19, 'e', 12)
    15931602      .arg(_gamma,              19, 'e', 12)
    1594       .arg(_tki + nd * 86400.0, 19, 'e', 12);
     1603      .arg(cdma ? _beta : _tki + nd * 86400.0, 19, 'e', 12);
    15951604
    15961605  QString fmt = version < 3.0 ? "   %1%2%3%4\n" : "    %1%2%3%4\n";
    … …  
    17361745          .arg(_sat_type  ,         19, 'e', 12)
    17371746          .arg(double(sourceflags), 19, 'e', 12)
    1738           .arg(_ET,                 19, 'e', 12)
    1739           .arg(_EE,                 19, 'e', 12);
     1747          .arg(_EE,                 19, 'e', 12)  // AODE
     1748          .arg(_ET,                 19, 'e', 12); // AODC
    17401749    }
    17411750    // =====================
Note: See TracChangeset for help on using the changeset viewer.