Changeset 8628 in ntrip for branches/BNC_2.12/src/bncconst.h
- Timestamp:
- Mar 13, 2019, 7:41:10 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncconst.h
r8167 r8628 32 32 class t_frequency { 33 33 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 39 50 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 51 69 max}; 52 70 53 71 static std::string toString(type tt) { 72 // GPS 54 73 if (tt == G1) return "G1"; 55 74 else if (tt == G2) return "G2"; 56 75 else if (tt == G5) return "G5"; 76 // GLONASS 57 77 else if (tt == R1) return "R1"; 78 else if (tt == R4) return "R4"; 58 79 else if (tt == R2) return "R2"; 80 else if (tt == R6) return "R6"; 81 else if (tt == R3) return "R3"; 82 // Galileo 59 83 else if (tt == E1) return "E1"; 60 84 else if (tt == E5) return "E5"; … … 62 86 else if (tt == E7) return "E7"; 63 87 else if (tt == E8) return "E8"; 88 // QZSS 64 89 else if (tt == J1) return "J1"; 65 90 else if (tt == J2) return "J2"; 66 91 else if (tt == J5) return "J5"; 67 92 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 68 104 else if (tt == S1) return "S1"; 69 105 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";75 106 return std::string(); 76 107 } 77 108 static enum type toInt(std::string s) { 109 // GPS 78 110 if (s == "G1") return G1; 79 111 else if (s == "G2") return G2; 80 112 else if (s == "G5") return G5; 113 // GLONASS 81 114 else if (s == "R1") return R1; 82 115 else if (s == "R2") return R2; 116 else if (s == "R3") return R3; 117 // Galileo 83 118 else if (s == "E1") return E1; 84 119 else if (s == "E5") return E5; … … 86 121 else if (s == "E7") return E7; 87 122 else if (s == "E8") return E8; 123 // QZSS 88 124 else if (s == "J1") return J1; 89 125 else if (s == "J2") return J2; 90 126 else if (s == "J5") return J5; 91 127 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 92 139 else if (s == "S1") return S1; 93 140 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;99 141 return type(); 100 142 }
Note:
See TracChangeset
for help on using the changeset viewer.