Changeset 6017 in ntrip for trunk/BNC/src/bncconst.cpp
- Timestamp:
- Aug 21, 2014, 8:44:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncconst.cpp
r4278 r6017 25 25 #include "bncconst.h" 26 26 27 const double t_CST::c = 299792458.0; 28 const double t_CST::freq1 = 1575420000.0; // GPS and Galileo E1 29 const double t_CST::freq2 = 1227600000.0; // GPS only 30 const double t_CST::freq5 = 1176450000.0; // GPS and Galileo E5a 31 const double t_CST::lambda1 = c / freq1; 32 const double t_CST::lambda2 = c / freq2; 33 const double t_CST::lambda5 = c / freq5; 34 const double t_CST::omega = 7292115.1467e-11; 35 const double t_CST::aell = 6378137.000; 36 const double t_CST::fInv = 298.2572236; 27 const double t_CST::c = 299792458.0; 28 const double t_CST::omega = 7292115.1467e-11; 29 const double t_CST::aell = 6378137.000; 30 const double t_CST::fInv = 298.2572236; 31 32 // 33 ////////////////////////////////////////////////////////////////////////////// 34 double t_CST::freq(t_frequency::type fType, int slotNum) { 35 switch (fType) { 36 case t_frequency::G1: return 1575420000.0; 37 case t_frequency::G2: return 1227600000.0; 38 case t_frequency::G5: return 1176450000.0; 39 case t_frequency::E1: return 1575420000.0; 40 case t_frequency::E5: return 1176450000.0; 41 case t_frequency::E7: return 1207140000.0; 42 case t_frequency::E8: return 1191795000.0; 43 case t_frequency::E6: return 1278750000.0; 44 case t_frequency::R1: return 1602000000.0 + 562500.0 * slotNum; 45 case t_frequency::R2: return 1246000000.0 + 437500.0 * slotNum; 46 case t_frequency::dummy: 47 case t_frequency::max: return 0.0; 48 } 49 return 0.0; 50 } 51 52 // 53 ////////////////////////////////////////////////////////////////////////////// 54 double t_CST::lambda(t_frequency::type fType, int slotNum) { 55 return c / freq(fType, slotNum); 56 }
Note:
See TracChangeset
for help on using the changeset viewer.