- Timestamp:
- Jul 6, 2018, 11:00:20 AM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncconst.cpp
r8168 r8407 35 35 double t_CST::freq(t_frequency::type fType, int slotNum) { 36 36 switch (fType) { 37 // GPS 37 38 case t_frequency::G1: return 1575420000.0; 38 39 case t_frequency::G2: return 1227600000.0; 39 40 case t_frequency::G5: return 1176450000.0; 41 // GLONASS 42 case t_frequency::R1: return 1602000000.0 + 562500.0 * slotNum; 43 //case t_frequency::R1a: return 1600995000.0; 44 case t_frequency::R2: return 1246000000.0 + 437500.0 * slotNum; 45 //case t_frequency::R2a: return 1248060000.0; 46 case t_frequency::R3: return 1202025000.0; 47 // Galileo 40 48 case t_frequency::E1: return 1575420000.0; 41 49 case t_frequency::E5: return 1176450000.0; … … 43 51 case t_frequency::E8: return 1191795000.0; 44 52 case t_frequency::E6: return 1278750000.0; 45 case t_frequency::R1: return 1602000000.0 + 562500.0 * slotNum; 46 case t_frequency::R2: return 1246000000.0 + 437500.0 * slotNum; 53 // QZSS 47 54 case t_frequency::J1: return 1575420000.0; 48 55 case t_frequency::J2: return 1227600000.0; 49 56 case t_frequency::J5: return 1176450000.0; 50 57 case t_frequency::J6: return 1278750000.0; 58 // BDS 59 case t_frequency::C2: return 1561098000.0; 60 case t_frequency::C1: return 1575420000.0; 61 case t_frequency::C7: return 1207140000.0; 62 case t_frequency::C6: return 1268520000.0; 63 // irnss 64 case t_frequency::I5: return 1176450000.0; 65 case t_frequency::I9: return 2492028000.0; 66 // SBAS 51 67 case t_frequency::S1: return 1575420000.0; 52 68 case t_frequency::S5: return 1176450000.0; 53 case t_frequency::C2: return 1561098000.0;54 case t_frequency::C7: return 1207140000.0;55 case t_frequency::C6: return 1268520000.0;56 case t_frequency::I5: return 1176450000.0;57 case t_frequency::I9: return 2492028000.0;58 69 case t_frequency::dummy: 59 70 case t_frequency::max: return 0.0; -
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 } -
trunk/BNC/src/rinex/rnxobsfile.cpp
r8237 r8407 345 345 << "C1P" << "L1P" << "S1P" 346 346 << "C2C" << "L2C" << "S2C" 347 << "C2P" << "L2P" << "S2P"; 347 << "C2P" << "L2P" << "S2P" 348 << "C3I" << "L3I" << "S3I"; 348 349 349 350 _obsTypes['E'] << "C1X" << "L1X" << "S1X"
Note:
See TracChangeset
for help on using the changeset viewer.