Changeset 2228 in ntrip for trunk


Ignore:
Timestamp:
Jan 12, 2010, 9:54:35 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2226 r2228  
    101101  QMutexLocker locker(&_mutex);
    102102
    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 
    109103  t_obsInternal* obs = &(pp->_o);
    110104
     
    143137  }
    144138
     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 
    145147  satData->P3 =  c1 * satData->P1 + c2 * satData->P2;
    146148
     
    148150  // ---------------------- 
    149151  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;
    152154  }
    153155  else {
Note: See TracChangeset for help on using the changeset viewer.