- Timestamp:
- Jan 12, 2010, 9:54:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2226 r2228 101 101 QMutexLocker locker(&_mutex); 102 102 103 static const double c1 = t_CST::freq1 * t_CST::freq1 /104 (t_CST::freq1 * t_CST::freq1 - t_CST::freq2 * t_CST::freq2);105 106 static const double c2 = - t_CST::freq2 * t_CST::freq2 /107 (t_CST::freq1 * t_CST::freq1 - t_CST::freq2 * t_CST::freq2);108 109 103 t_obsInternal* obs = &(pp->_o); 110 104 … … 143 137 } 144 138 139 double f1 = t_CST::freq1; 140 double f2 = t_CST::freq2; 141 142 // Ionosphere-Free Combination 143 // --------------------------- 144 double c1 = f1 * f1 / (f1 * f1 - f2 * f2); 145 double c2 = - f2 * f2 / (f1 * f1 - f2 * f2); 146 145 147 satData->P3 = c1 * satData->P1 + c2 * satData->P2; 146 148 … … 148 150 // ---------------------- 149 151 if (obs->L1 && obs->L2) { 150 satData->L1 = obs->L1 * t_CST:: lambda1;151 satData->L2 = obs->L2 * t_CST:: lambda2;152 satData->L1 = obs->L1 * t_CST::c / f1; 153 satData->L2 = obs->L2 * t_CST::c / f2; 152 154 } 153 155 else {
Note:
See TracChangeset
for help on using the changeset viewer.