Changeset 2058 in ntrip for trunk/BNC/bncpppclient.cpp
- Timestamp:
- Dec 1, 2009, 11:49:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2055 r2058 46 46 #include "bncutils.h" 47 47 #include "bncconst.h" 48 #include "b ancroft.h"48 #include "bncmodel.h" 49 49 50 50 extern "C" { … … 59 59 _staID = staID; 60 60 _epoData = 0; 61 _model = new bncModel(); 61 62 } 62 63 … … 64 65 //////////////////////////////////////////////////////////////////////////// 65 66 bncPPPclient::~bncPPPclient() { 67 delete _model; 66 68 delete _epoData; 67 69 QMapIterator<QString, t_eph*> it(_eph); … … 288 290 void bncPPPclient::processEpoch() { 289 291 290 const unsigned MINOBS = 4;291 292 292 // Data Pre-Processing 293 293 // ------------------- … … 305 305 } 306 306 307 if (_epoData->size() < MINOBS) {308 return;309 }310 311 307 // Bancroft Solution 312 308 // ----------------- 313 Matrix BB(_epoData->size(), 4); 314 315 QMapIterator<QString, t_satData*> it(_epoData->satData); 316 int iObs = 0; 317 while (it.hasNext()) { 318 it.next(); 319 QString prn = it.key(); 320 t_satData* satData = it.value(); 321 ++iObs; 322 BB(iObs, 1) = satData->xx(1); 323 BB(iObs, 2) = satData->xx(2); 324 BB(iObs, 3) = satData->xx(3); 325 BB(iObs, 4) = satData->P3 + satData->clk; 326 } 327 328 ColumnVector pos(4); 329 bancroft(BB, pos); 309 if (_model->cmpBancroft(_epoData) != success) { 310 return; 311 } 330 312 331 313 ostringstream str; 332 314 str.setf(ios::fixed); 333 str << " PPP " 315 str << " PPP " << _staID.data() << " " 334 316 << _epoData->tt.timestr(1) << " " << _epoData->size() << " " 335 << setw(14) << setprecision(3) << pos(1)<< " "336 << setw(14) << setprecision(3) << pos(2)<< " "337 << setw(14) << setprecision(3) << pos(3);317 << setw(14) << setprecision(3) << _model->xcBanc()(1) << " " 318 << setw(14) << setprecision(3) << _model->xcBanc()(2) << " " 319 << setw(14) << setprecision(3) << _model->xcBanc()(3); 338 320 339 321 emit newMessage(QString(str.str().c_str()).toAscii(), true);
Note:
See TracChangeset
for help on using the changeset viewer.