Changeset 6055 in ntrip for trunk/BNC/src/PPP_free
- Timestamp:
- Sep 7, 2014, 8:48:53 AM (10 years ago)
- Location:
- trunk/BNC/src/PPP_free
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/bncmodel.cpp
r6054 r6055 54 54 #include "pppopt.h" 55 55 56 using namespace BNC_PPP; 56 57 using namespace std; 57 58 -
trunk/BNC/src/PPP_free/bncmodel.h
r6054 r6055 36 36 class t_satData; 37 37 class bncAntex; 38 class t_pppOpt; 38 39 namespace BNC_PPP { 40 41 class t_pppOptions; 39 42 class bncPPPclient; 40 43 … … 143 146 144 147 bncPPPclient* _pppClient; 145 const t_pppOpt *_opt;148 const t_pppOptions* _opt; 146 149 bncTime _time; 147 150 bncTime _lastTimeOK; … … 165 168 }; 166 169 170 } 171 167 172 #endif -
trunk/BNC/src/PPP_free/bncpppclient.cpp
r6054 r6055 48 48 #include "bncconst.h" 49 49 #include "bncmodel.h" 50 #include "pppopt.h" 51 50 #include "pppOptions.h" 51 52 using namespace BNC_PPP; 52 53 using namespace std; 53 54 54 55 // Constructor 55 56 //////////////////////////////////////////////////////////////////////////// 56 bncPPPclient::bncPPPclient(QByteArray staID, t_pppOpt * opt, bool connectSlots) :57 bncPPPclient::bncPPPclient(QByteArray staID, t_pppOptions* opt, bool connectSlots) : 57 58 bncEphUser(connectSlots) { 58 59 … … 62 63 } 63 64 else { 64 _opt = new t_pppOpt ();65 _opt = new t_pppOptions(); 65 66 _optOwner = true; 66 67 } … … 111 112 112 113 if (obs.satSys == 'R') { 113 if (!_opt->use Glonass) return;114 if (!_opt->useSystem('R')) return; 114 115 } 115 116 else if (obs.satSys == 'E') { 116 if (!_opt->use Galileo) return;117 if (!_opt->useSystem('E')) return; 117 118 } 118 119 else if (obs.satSys != 'G') { … … 210 211 if (satData->P1 != 0.0 && satData->P2 != 0.0 && 211 212 satData->L1 != 0.0 && satData->L2 != 0.0 ) { 212 double f1 = t_CST::f1(obs.satSys, obs.slotNum); 213 double f2 = t_CST::f2(obs.satSys, obs.slotNum); 213 t_frequency::type fType1 = t_lc::toFreq(obs.satSys,t_lc::l1); 214 t_frequency::type fType2 = t_lc::toFreq(obs.satSys,t_lc::l2); 215 double f1 = t_CST::freq(fType1, obs.slotNum); 216 double f2 = t_CST::freq(fType2, obs.slotNum); 214 217 double a1 = f1 * f1 / (f1 * f1 - f2 * f2); 215 218 double a2 = - f2 * f2 / (f1 * f1 - f2 * f2); … … 235 238 if (satData->P1 != 0.0 && satData->P5 != 0.0 && 236 239 satData->L1 != 0.0 && satData->L5 != 0.0 ) { 237 double f1 = t_CST::freq 1;238 double f5 = t_CST::freq 5;240 double f1 = t_CST::freq(t_frequency::E1, 0); 241 double f5 = t_CST::freq(t_frequency::E5, 0); 239 242 double a1 = f1 * f1 / (f1 * f1 - f5 * f5); 240 243 double a5 = - f5 * f5 / (f1 * f1 - f5 * f5); … … 259 262 // Check the Mountpoint (source of corrections) 260 263 // -------------------------------------------- 261 if (!_opt-> pppCorrMount.isEmpty()) {264 if (!_opt->_corrMount.empty()) { 262 265 QMutableListIterator<QString> itm(corrList); 263 266 while (itm.hasNext()) { … … 265 268 if (hlp.size() > 0) { 266 269 QString mountpoint = hlp[hlp.size()-1]; 267 if (mountpoint != _opt->pppCorrMount) {270 if (mountpoint != QString(_opt->_corrMount.c_str())) { 268 271 itm.remove(); 269 272 } … … 323 326 if (_eph.contains(prn)) { 324 327 325 if (_opt-> pppMode&& prn[0] != 'E') {328 if (_opt->useOrbClkCorr() && prn[0] != 'E') { 326 329 if (_corr.contains(prn)) { 327 330 t_corr* cc = _corr.value(prn); … … 514 517 // No corrections yet, skip the epoch 515 518 // ---------------------------------- 516 if (_opt-> corrSync != 0.0&& !_corr_tt.valid()) {519 if (_opt->useOrbClkCorr() && !_corr_tt.valid()) { 517 520 return; 518 521 } … … 520 523 // Process the front epoch 521 524 // ----------------------- 522 if (_opt-> corrSync == 0 || frontEpoData->tt - _corr_tt < _opt->corrSync) {525 if (_opt->_corrWaitTime == 0.0 || frontEpoData->tt - _corr_tt >= _opt->_corrWaitTime) { 523 526 processFrontEpoch(); 524 527 delete _epoData.front(); … … 536 539 QMutexLocker locker(&_mutex); 537 540 538 if (mountPoint != _opt->pppCorrMount) {541 if (mountPoint != QString(_opt->_corrMount.c_str())) { 539 542 return; 540 543 } -
trunk/BNC/src/PPP_free/bncpppclient.h
r6054 r6055 28 28 #include <queue> 29 29 #include "bncephuser.h" 30 #include " RTCM/GPSDecoder.h"30 #include "GPSDecoder.h" 31 31 32 33 namespace BNC_PPP { 34 32 35 class bncModel; 33 class t_pppOpt ;36 class t_pppOptions; 34 37 35 38 class t_satData { … … 117 120 118 121 public: 119 bncPPPclient(QByteArray staID, t_pppOpt * opt = 0, bool connectSlots = true);122 bncPPPclient(QByteArray staID, t_pppOptions* opt = 0, bool connectSlots = true); 120 123 ~bncPPPclient(); 121 124 void putNewObs(const t_obs& pp); … … 123 126 ColumnVector& vv); 124 127 QByteArray staID() const {return _staID;} 125 const t_pppOpt * opt() const {return _opt;}128 const t_pppOptions* opt() const {return _opt;} 126 129 void emitNewMessage(QByteArray msg, bool showOnScreen) { 127 130 emit newMessage(msg, showOnScreen); … … 160 163 t_irc cmpToT(t_satData* satData); 161 164 162 t_pppOpt *_opt;165 t_pppOptions* _opt; 163 166 bool _optOwner; 164 167 QByteArray _staID; … … 171 174 }; 172 175 176 } 177 173 178 #endif
Note:
See TracChangeset
for help on using the changeset viewer.