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


Ignore:
Timestamp:
Feb 4, 2025, 4:46:08 PM (19 hours ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r10599 r10603  
    106106  return success;
    107107}
     108
     109//
     110//////////////////////////////////////////////////////////////////////////////
     111void t_eph::setType(QString typeStr) {
     112
     113  if (typeStr == "LNAV") {
     114    _type = t_eph::LNAV;
     115  } else if (typeStr == "FDMA") {
     116    _type = t_eph::FDMA;
     117  } else if (typeStr == "FNAV") {
     118    _type = t_eph::FNAV;
     119  } else if (typeStr == "INAV") {
     120    _type = t_eph::INAV;
     121  } else if (typeStr == "D1") {
     122    _type = t_eph::D1;
     123  } else if (typeStr == "D2") {
     124    _type = t_eph::D2;
     125  } else if (typeStr == "SBAS") {
     126    _type = t_eph::SBASL1;
     127  } else if (typeStr == "CNAV") {
     128    _type = t_eph::CNAV;
     129  } else if (typeStr == "CNV1") {
     130    _type = t_eph::CNV1;
     131  } else if (typeStr == "CNV2") {
     132    _type = t_eph::CNV2;
     133  } else if (typeStr == "CNV3") {
     134    _type = t_eph::CNV3;
     135  } else if (typeStr == "L1NV") {
     136    _type = t_eph::L1NV;
     137  } else if (typeStr == "L1OC") {
     138    _type = t_eph::L1OC;
     139  } else if (typeStr == "L3OC") {
     140    _type = t_eph::L3OC;
     141  } else {
     142    _type = t_eph::undefined;
     143  }
     144
     145}
     146
    108147
    109148//
     
    226265// Constructor
    227266//////////////////////////////////////////////////////////////////////////////
    228 t_ephGPS::t_ephGPS(double rnxVersion, const QStringList &lines) {
    229 
     267t_ephGPS::t_ephGPS(double rnxVersion, const QStringList &lines, QString typeStr) {
     268 
     269  setType(typeStr);
     270 
    230271  int nLines = 8; // LNAV
    231 
    232272  // Source RINEX version < 4
    233273  if (type() == t_eph::undefined) {
     
    10091049// Constructor
    10101050//////////////////////////////////////////////////////////////////////////////
    1011 t_ephGlo::t_ephGlo(double rnxVersion, const QStringList &lines) {
     1051t_ephGlo::t_ephGlo(double rnxVersion, const QStringList &lines, const QString typeStr) {
     1052
     1053  setType(typeStr);
    10121054
    10131055  int nLines = 4;
     
    16511693// Constructor
    16521694//////////////////////////////////////////////////////////////////////////////
    1653 t_ephGal::t_ephGal(double rnxVersion, const QStringList &lines) {
     1695t_ephGal::t_ephGal(double rnxVersion, const QStringList &lines, const QString typeStr) {
     1696
     1697  setType(typeStr);
    16541698
    16551699  const int nLines = 8;
     
    21052149// Constructor
    21062150//////////////////////////////////////////////////////////////////////////////
    2107 t_ephSBAS::t_ephSBAS(double rnxVersion, const QStringList &lines) {
     2151t_ephSBAS::t_ephSBAS(double rnxVersion, const QStringList &lines, const QString typeStr) {
     2152
     2153  setType(typeStr);
    21082154
    21092155  const int nLines = 4;
     
    23472393// Constructor
    23482394//////////////////////////////////////////////////////////////////////////////
    2349 t_ephBDS::t_ephBDS(double rnxVersion, const QStringList &lines) {
     2395t_ephBDS::t_ephBDS(double rnxVersion, const QStringList &lines, const QString typeStr) {
     2396
     2397  setType(typeStr);
    23502398
    23512399  int nLines = 8;
Note: See TracChangeset for help on using the changeset viewer.