Changeset 6193 in ntrip for trunk


Ignore:
Timestamp:
Sep 14, 2014, 5:03:05 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r6192 r6193  
    951951// Translate Observation Type v2 --> v3
    952952////////////////////////////////////////////////////////////////////////////
    953 QString t_rnxObsFile::type2to3(char /* sys */, const QString& typeV2) {
     953QString t_rnxObsFile::type2to3(char sys, const QString& typeV2) {
    954954  if      (typeV2 == "P1") {
    955     return "C1P";
     955    return (sys == 'G') ? "C1W" : "C1P";
    956956  }
    957957  else if (typeV2 == "P2") {
    958     return "C2P";
     958    return (sys == 'G') ? "C2W" : "C2P";
    959959  }
    960960  return typeV2;
     
    964964////////////////////////////////////////////////////////////////////////////
    965965QString t_rnxObsFile::type3to2(char /* sys */, const QString& typeV3) {
    966   if      (typeV3 == "C1P") {
     966  if      (typeV3 == "C1P" || typeV3 == "C1W") {
    967967    return "P1";
    968968  }
    969   else if (typeV3 == "C2P") {
     969  else if (typeV3 == "C2P" || typeV3 == "C2W") {
    970970    return "P2";
    971971  }
Note: See TracChangeset for help on using the changeset viewer.