Changeset 8407 in ntrip for trunk/BNC/src/bncconst.h


Ignore:
Timestamp:
Jul 6, 2018, 11:00:20 AM (6 years ago)
Author:
stuerze
Message:

updated RINEX obs codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncconst.h

    r8168 r8407  
    3232class t_frequency {
    3333 public:
    34   enum type {dummy = 0, G1, G2, G5, R1, R2,
     34  enum type {dummy = 0,
     35                        // GPS
     36                        G1,
     37                        G2,
     38                        G5,
     39                        // GLONASS
     40                        R1, // G1
     41 //                       R1a,// G1a / 1600.995
     42                        R2, // G2
     43//                        R2a,// G1b / 1248.06
     44                        R3, // G3  / 1202.025
     45                        // Galileo
    3546                        E1, // E1  / 1575.42
    3647                        E5, // E5a / 1176.45
     
    3849                        E8, // E5(E5a+E5b) / 1191.795
    3950                        E6, // E6  / 1278.75
     51                        // QZSS
    4052                        J1, // 1575.42
    4153                        J2, // 1227.60
    4254                        J5, // 1176.45
    43                         J6, // Lex(6) 1278.75
     55                        J6, // 1278.75
     56                        // BDS
     57                        C2, // 1561.098
     58                        C1, // 1575.42
     59                        C5, // 1176.45
     60                        C7, // 1207.14
     61                        C6, // 1268.52
     62                        // IRNSS
     63                        I5, // 1176.45
     64                        I9, // 2492.028
     65                        // SBAS
    4466                        S1, // 1575.42
    4567                        S5, // 1176.45
    46                         C2, // 1561.098
    47                         C7, // 1207.14
    48                         C6, // 1268.52
    49                         I5, // 1176.45
    50                         I9, // 2492.028
    5168             max};
    5269
    5370  static std::string toString(type tt) {
     71    // GPS
    5472    if      (tt == G1) return "G1";
    5573    else if (tt == G2) return "G2";
    5674    else if (tt == G5) return "G5";
     75    // GLONASS
    5776    else if (tt == R1) return "R1";
     77//    else if (tt == R1a) return "R5";
    5878    else if (tt == R2) return "R2";
     79//    else if (tt == R2a) return "R7";
     80    else if (tt == R3) return "R3";
     81    // Galileo
    5982    else if (tt == E1) return "E1";
    6083    else if (tt == E5) return "E5";
     
    6285    else if (tt == E7) return "E7";
    6386    else if (tt == E8) return "E8";
     87    // QZSS
    6488    else if (tt == J1) return "J1";
    6589    else if (tt == J2) return "J2";
    6690    else if (tt == J5) return "J5";
    6791    else if (tt == J6) return "J6";
     92    // BDS
     93    else if (tt == C2) return "C2";
     94    else if (tt == C1) return "C1";
     95    else if (tt == C5) return "C5";
     96    else if (tt == C7) return "C7";
     97    else if (tt == C6) return "C6";
     98    // IRNSS
     99    else if (tt == I5) return "I5";
     100    else if (tt == I9) return "I9";
     101    // SBAS
    68102    else if (tt == S1) return "S1";
    69103    else if (tt == S5) return "S5";
    70     else if (tt == C2) return "C2";
    71     else if (tt == C7) return "C7";
    72     else if (tt == C6) return "C6";
    73     else if (tt == I5) return "I5";
    74     else if (tt == I9) return "I9";
    75104    return std::string();
    76105  }
    77106  static enum type toInt(std::string s) {
     107    // GPS
    78108    if      (s == "G1") return G1;
    79109    else if (s == "G2") return G2;
    80110    else if (s == "G5") return G5;
     111    // GLONASS
    81112    else if (s == "R1") return R1;
    82113    else if (s == "R2") return R2;
     114    else if (s == "R3") return R3;
     115    // Galileo
    83116    else if (s == "E1") return E1;
    84117    else if (s == "E5") return E5;
     
    86119    else if (s == "E7") return E7;
    87120    else if (s == "E8") return E8;
     121    // QZSS
    88122    else if (s == "J1") return J1;
    89123    else if (s == "J2") return J2;
    90124    else if (s == "J5") return J5;
    91125    else if (s == "J6") return J6;
     126    // BDS
     127    else if (s == "C2") return C2;
     128    else if (s == "C1") return C1;
     129    else if (s == "C5") return C5;
     130    else if (s == "C7") return C7;
     131    else if (s == "C6") return C6;
     132    // IRNSS
     133    else if (s == "I5") return I5;
     134    else if (s == "I9") return I9;
     135    // SBAS
    92136    else if (s == "S1") return S1;
    93137    else if (s == "S5") return S5;
    94     else if (s == "C2") return C2;
    95     else if (s == "C7") return C7;
    96     else if (s == "C6") return C6;
    97     else if (s == "I5") return I5;
    98     else if (s == "I9") return I9;
    99138    return type();
    100139  }
Note: See TracChangeset for help on using the changeset viewer.