Changeset 8407 in ntrip for trunk/BNC/src/bncconst.h
- Timestamp:
- Jul 6, 2018, 11:00:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncconst.h
r8168 r8407 32 32 class t_frequency { 33 33 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 35 46 E1, // E1 / 1575.42 36 47 E5, // E5a / 1176.45 … … 38 49 E8, // E5(E5a+E5b) / 1191.795 39 50 E6, // E6 / 1278.75 51 // QZSS 40 52 J1, // 1575.42 41 53 J2, // 1227.60 42 54 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 44 66 S1, // 1575.42 45 67 S5, // 1176.45 46 C2, // 1561.09847 C7, // 1207.1448 C6, // 1268.5249 I5, // 1176.4550 I9, // 2492.02851 68 max}; 52 69 53 70 static std::string toString(type tt) { 71 // GPS 54 72 if (tt == G1) return "G1"; 55 73 else if (tt == G2) return "G2"; 56 74 else if (tt == G5) return "G5"; 75 // GLONASS 57 76 else if (tt == R1) return "R1"; 77 // else if (tt == R1a) return "R5"; 58 78 else if (tt == R2) return "R2"; 79 // else if (tt == R2a) return "R7"; 80 else if (tt == R3) return "R3"; 81 // Galileo 59 82 else if (tt == E1) return "E1"; 60 83 else if (tt == E5) return "E5"; … … 62 85 else if (tt == E7) return "E7"; 63 86 else if (tt == E8) return "E8"; 87 // QZSS 64 88 else if (tt == J1) return "J1"; 65 89 else if (tt == J2) return "J2"; 66 90 else if (tt == J5) return "J5"; 67 91 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 68 102 else if (tt == S1) return "S1"; 69 103 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 104 return std::string(); 76 105 } 77 106 static enum type toInt(std::string s) { 107 // GPS 78 108 if (s == "G1") return G1; 79 109 else if (s == "G2") return G2; 80 110 else if (s == "G5") return G5; 111 // GLONASS 81 112 else if (s == "R1") return R1; 82 113 else if (s == "R2") return R2; 114 else if (s == "R3") return R3; 115 // Galileo 83 116 else if (s == "E1") return E1; 84 117 else if (s == "E5") return E5; … … 86 119 else if (s == "E7") return E7; 87 120 else if (s == "E8") return E8; 121 // QZSS 88 122 else if (s == "J1") return J1; 89 123 else if (s == "J2") return J2; 90 124 else if (s == "J5") return J5; 91 125 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 92 136 else if (s == "S1") return S1; 93 137 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 138 return type(); 100 139 }
Note:
See TracChangeset
for help on using the changeset viewer.