Changeset 2113 in ntrip
- Timestamp:
- Dec 15, 2009, 10:02:11 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r2054 r2113 288 288 if (settings.value("pppMount").toString() == _staID) { 289 289 _PPPclient = new bncPPPclient(_staID); 290 connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)),291 _PPPclient, SLOT(slotNewEphGPS(gpsephemeris)));292 connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),293 _PPPclient, SLOT(slotNewCorrections(QList<QString>)));294 connect(_PPPclient, SIGNAL(newMessage(QByteArray,bool)),295 ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool)));296 290 } 297 291 -
trunk/BNC/bncmodel.cpp
r2112 r2113 42 42 #include <cmath> 43 43 #include <newmatio.h> 44 #include <sstream> 44 45 45 46 #include "bncmodel.h" 47 #include "bncapp.h" 46 48 #include "bncpppclient.h" 47 49 #include "bancroft.h" … … 51 53 using namespace std; 52 54 53 const unsigned MINOBS = 4; 54 const double MINELE = 10.0 * M_PI / 180.0; 55 const double sig_crd_0 = 100.0; 56 const double sig_crd_p = 100.0; 57 const double sig_clk_0 = 1000.0; 58 const double sig_trp_0 = 0.01; 59 const double sig_trp_p = 1e-6; 60 const double sig_amb_0 = 100.0; 61 const double sig_P3 = 1.0; 62 const double sig_L3 = 0.01; 55 const unsigned MINOBS = 4; 56 const double MINELE = 10.0 * M_PI / 180.0; 57 const double MAXRES_CODE = 10.0; 58 const double MAXRES_PHASE = 0.10; 59 const double sig_crd_0 = 100.0; 60 const double sig_crd_p = 100.0; 61 const double sig_clk_0 = 1000.0; 62 const double sig_trp_0 = 0.01; 63 const double sig_trp_p = 1e-6; 64 const double sig_amb_0 = 100.0; 65 const double sig_P3 = 1.0; 66 const double sig_L3 = 0.01; 63 67 64 68 // Constructor … … 109 113 // Constructor 110 114 //////////////////////////////////////////////////////////////////////////// 111 bncModel::bncModel() { 115 bncModel::bncModel(QByteArray staID) { 116 117 _staID = staID; 118 119 connect(this, SIGNAL(newMessage(QByteArray,bool)), 120 ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool))); 112 121 113 122 bncSettings settings; … … 394 403 ColumnVector vv; 395 404 405 // Loop over all outliers 406 // ---------------------- 396 407 do { 397 398 if (epoData->size() < MINOBS) {399 return failure;400 }401 408 402 409 // Bancroft Solution … … 470 477 } 471 478 479 // Message (both log file and screen) 480 // ---------------------------------- 481 ostringstream str; 482 str.setf(ios::fixed); 483 str << " PPP " << _staID.data() << " " 484 << epoData->tt.timestr(1) << " " << epoData->size() << " " 485 << setw(14) << setprecision(3) << x() << " " 486 << setw(14) << setprecision(3) << y() << " " 487 << setw(14) << setprecision(3) << z(); 488 489 emit newMessage(QString(str.str().c_str()).toAscii(), true); 490 472 491 return success; 473 492 } … … 478 497 const ColumnVector& vv, 479 498 QMap<QString, t_satData*>& satData) { 480 481 const static double MAXRES_CODE = 10.0;482 const static double MAXRES_PHASE = 0.10;483 499 484 500 double vvMaxCode = 0.0; -
trunk/BNC/bncmodel.h
r2112 r2113 50 50 }; 51 51 52 class bncModel { 52 class bncModel : public QObject { 53 Q_OBJECT 53 54 public: 54 bncModel( );55 bncModel(QByteArray staID); 55 56 ~bncModel(); 56 57 t_irc cmpBancroft(t_epoData* epoData); … … 62 63 double trp() const {return _estTropo ? _params[4]->xx : 0.0;} 63 64 65 signals: 66 void newMessage(QByteArray msg, bool showOnScreen); 67 64 68 private: 65 69 double cmpValue(t_satData* satData); … … 70 74 QMap<QString, t_satData*>& satData); 71 75 76 QByteArray _staID; 72 77 QVector<bncParam*> _params; 73 78 SymmetricMatrix _QQ; -
trunk/BNC/bncpppclient.cpp
r2108 r2113 39 39 * -----------------------------------------------------------------------*/ 40 40 41 #include <iomanip>42 #include <newmatio.h>43 #include <sstream>44 45 41 #include "bncpppclient.h" 42 #include "bncapp.h" 46 43 #include "bncutils.h" 47 44 #include "bncconst.h" … … 57 54 //////////////////////////////////////////////////////////////////////////// 58 55 bncPPPclient::bncPPPclient(QByteArray staID) { 56 57 connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)), 58 this, SLOT(slotNewEphGPS(gpsephemeris))); 59 connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)), 60 this, SLOT(slotNewCorrections(QList<QString>))); 61 59 62 _staID = staID; 60 63 _epoData = 0; 61 _model = new bncModel( );64 _model = new bncModel(staID); 62 65 } 63 66 … … 333 336 return; 334 337 } 335 336 ostringstream str; 337 str.setf(ios::fixed); 338 str << " PPP " << _staID.data() << " " 339 << _epoData->tt.timestr(1) << " " << _epoData->size() << " " 340 << setw(14) << setprecision(3) << _model->x() << " " 341 << setw(14) << setprecision(3) << _model->y() << " " 342 << setw(14) << setprecision(3) << _model->z() << " " 343 << setw(8) << setprecision(3) << _model->clk() << " " 344 << setw(8) << setprecision(3) << _model->trp(); 345 346 emit newMessage(QString(str.str().c_str()).toAscii(), true); 347 } 348 338 } 339 -
trunk/BNC/bncpppclient.h
r2065 r2113 88 88 void putNewObs(p_obs pp); 89 89 90 signals:91 void newMessage(QByteArray msg, bool showOnScreen);92 93 90 public slots: 94 91 void slotNewEphGPS(gpsephemeris gpseph);
Note:
See TracChangeset
for help on using the changeset viewer.