Changeset 6017 in ntrip for trunk/BNC/src/bncconst.h
- Timestamp:
- Aug 21, 2014, 8:44:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncconst.h
r4278 r6017 23 23 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 24 25 #include <string> 26 25 27 #ifndef BNCCONST_H 26 28 #define BNCCONST_H … … 28 30 enum t_irc {failure = -1, success, fatal}; // return code 29 31 32 class t_frequency { 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 39 E6, // E6 / 1278.75 40 max}; 41 42 static std::string toString(type tt) { 43 if (tt == G1) return "G1"; 44 else if (tt == G2) return "G2"; 45 else if (tt == G5) return "G5"; 46 else if (tt == R1) return "R1"; 47 else if (tt == R2) return "R2"; 48 else if (tt == E1) return "E1"; 49 else if (tt == E5) return "E5"; 50 else if (tt == E6) return "E6"; 51 else if (tt == E7) return "E7"; 52 else if (tt == E8) return "E8"; 53 return std::string(); 54 } 55 }; 56 30 57 class t_CST { 31 58 public: 32 static double f1(char satSys, int slotNum) { 33 if (satSys == 'G' || satSys == 'E') { 34 return freq1; 35 } 36 else if (satSys == 'R') { 37 return 1602000000.0 + 562500.0 * slotNum; 38 } 39 else { 40 return 0.0; 41 } 42 } 43 static double f2(char satSys, int slotNum) { 44 if (satSys == 'G') { 45 return freq2; 46 } 47 else if (satSys == 'R') { 48 return 1246000000.0 + 437500.0 * slotNum; 49 } 50 else { 51 return 0.0; 52 } 53 } 59 static double freq(t_frequency::type fType, int slotNum); 60 static double lambda(t_frequency::type fType, int slotNum); 54 61 55 62 static const double c; 56 static const double freq1; // GPS and Galileo E157 static const double freq2; // GPS only58 static const double freq5; // GPS and Galileo E5a59 static const double lambda1;60 static const double lambda2;61 static const double lambda5;62 63 static const double omega; 63 64 static const double aell;
Note:
See TracChangeset
for help on using the changeset viewer.