Changeset 8628 in ntrip for branches/BNC_2.12/src/bncconst.h


Ignore:
Timestamp:
Mar 13, 2019, 7:41:10 AM (5 years ago)
Author:
stuerze
Message:

some updates to support RINEX Version 3.04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncconst.h

    r8167 r8628  
    3232class t_frequency {
    3333 public:
    34   enum type {dummy = 0, G1, G2, G5, R1, R2,
    35                         E1, // E1  / 1575.42         
    36                         E5, // E5a / 1176.45         
    37                         E7, // E5b / 1207.140         
    38                         E8, // E5(E5a+E5b) / 1191.795
     34 enum type {dummy = 0,
     35                        // GPS
     36                        G1, // L1 / 1575.42
     37                        G2, // L2 / 1227.60
     38                        G5, // L5 / 1176.45
     39                        // GLONASS
     40                        R1, // G1  / 1602 + k * 9/16 (k = -7 .. +12)
     41                        R4, // G1a / 1600.995
     42                        R2, // G2  / 1246 + k * 7/16 (k = -7 .. +12)
     43                        R6, // G1b / 1248.06
     44                        R3, // G3  / 1202.025
     45                        // Galileo
     46                        E1, // E1  / 1575.42
     47                        E5, // E5a / 1176.45
     48                        E7, // E5b / 1207.140
     49                        E8, // E5(E5a+E5b) / 1191.795
    3950                        E6, // E6  / 1278.75
    40                         J1, // 1575.42
    41                         J2, // 1227.60
    42                         J5, // 1176.45
    43                         J6, // Lex(6) 1278.75
    44                         S1, // 1575.42
    45                         S5, // 1176.45
    46                         C2, // 1561.098
    47                         C7, // 1207.14
    48                         C6, // 1268.52
    49                         I5, // 1176.45
    50                         I9, // 2492.028                       
     51                        // QZSS
     52                        J1, // L1 / 1575.42
     53                        J2, // L2 / 1227.60
     54                        J5, // L5 / 1176.45
     55                        J6, // L6 / 1278.75
     56                        // BDS
     57                        C2, // B1-2 / 1561.098
     58                        C1, // B1   / 1575.42 (BDS-3 signals)
     59                        C5, // B2a  / 1176.45 (BDS-3 signals)
     60                        C7, // B2b  / 1207.14 (BDS-2 signals)
     61                        C8, // B2 (B2a + B2b) / 1191.795 (BDS-3 signals)
     62                        C6, // B3   / 1268.52
     63                        // IRNSS
     64                        I5, // L5 / 1176.45
     65                        I9, // S  / 2492.028
     66                        // SBAS
     67                        S1, // L1 / 1575.42
     68                        S5, // L5 / 1176.45
    5169             max};
    5270
    5371  static std::string toString(type tt) {
     72    // GPS
    5473    if      (tt == G1) return "G1";
    5574    else if (tt == G2) return "G2";
    5675    else if (tt == G5) return "G5";
     76    // GLONASS
    5777    else if (tt == R1) return "R1";
     78    else if (tt == R4) return "R4";
    5879    else if (tt == R2) return "R2";
     80    else if (tt == R6) return "R6";
     81    else if (tt == R3) return "R3";
     82    // Galileo
    5983    else if (tt == E1) return "E1";
    6084    else if (tt == E5) return "E5";
     
    6286    else if (tt == E7) return "E7";
    6387    else if (tt == E8) return "E8";
     88    // QZSS
    6489    else if (tt == J1) return "J1";
    6590    else if (tt == J2) return "J2";
    6691    else if (tt == J5) return "J5";
    6792    else if (tt == J6) return "J6";
     93    // BDS
     94    else if (tt == C2) return "C2";
     95    else if (tt == C1) return "C1";
     96    else if (tt == C5) return "C5";
     97    else if (tt == C7) return "C7";
     98    else if (tt == C8) return "C8";
     99    else if (tt == C6) return "C6";
     100    // IRNSS
     101    else if (tt == I5) return "I5";
     102    else if (tt == I9) return "I9";
     103    // SBAS
    68104    else if (tt == S1) return "S1";
    69105    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";   
    75106    return std::string();
    76107  }
    77108  static enum type toInt(std::string s) {
     109    // GPS
    78110    if      (s == "G1") return G1;
    79111    else if (s == "G2") return G2;
    80112    else if (s == "G5") return G5;
     113    // GLONASS
    81114    else if (s == "R1") return R1;
    82115    else if (s == "R2") return R2;
     116    else if (s == "R3") return R3;
     117    // Galileo
    83118    else if (s == "E1") return E1;
    84119    else if (s == "E5") return E5;
     
    86121    else if (s == "E7") return E7;
    87122    else if (s == "E8") return E8;
     123    // QZSS
    88124    else if (s == "J1") return J1;
    89125    else if (s == "J2") return J2;
    90126    else if (s == "J5") return J5;
    91127    else if (s == "J6") return J6;
     128    // BDS
     129    else if (s == "C2") return C2;
     130    else if (s == "C1") return C1;
     131    else if (s == "C5") return C5;
     132    else if (s == "C7") return C7;
     133    else if (s == "C8") return C8;
     134    else if (s == "C6") return C6;
     135    // IRNSS
     136    else if (s == "I5") return I5;
     137    else if (s == "I9") return I9;
     138    // SBAS
    92139    else if (s == "S1") return S1;
    93140    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;
    99141    return type();
    100142  }
Note: See TracChangeset for help on using the changeset viewer.