Changeset 2113 in ntrip for trunk/BNC/bncmodel.cpp
- Timestamp:
- Dec 15, 2009, 10:02:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.