Changeset 3322 in ntrip
- Timestamp:
- Jul 1, 2011, 12:59:38 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r3321 r3322 55 55 using namespace std; 56 56 57 const unsigned MINOBS = 4;57 const unsigned MINOBS = 5; 58 58 const double MINELE_GPS = 10.0 * M_PI / 180.0; 59 59 const double MINELE_GLO = 10.0 * M_PI / 180.0; … … 1309 1309 Tracer tracer("bncModel::update_p"); 1310 1310 1311 SymmetricMatrix QQsav; 1312 ColumnVector vv; 1311 // Remeber Original State Vector and Variance-Covariance Matrix 1312 // ------------------------------------------------------------ 1313 SymmetricMatrix QQ_orig = _QQ; 1314 1315 QVectorIterator<bncParam*> itPar(_params); 1316 QVector<bncParam*> params_orig; 1317 while (itPar.hasNext()) { 1318 bncParam* par = itPar.next(); 1319 params_orig.push_back(new bncParam(*par)); 1320 } 1313 1321 1314 1322 for (int iPhase = 0; iPhase <= (_usePhase ? 1 : 0); iPhase++) { 1315 1323 1316 ColumnVector dx; 1324 SymmetricMatrix QQsav; 1325 ColumnVector vv; 1326 ColumnVector dx; 1317 1327 1318 1328 do { … … 1322 1332 if (iPhase == 0) { 1323 1333 if (cmpBancroft(epoData) != success) { 1334 QVectorIterator<bncParam*> itParOrig(params_orig); 1335 while (itParOrig.hasNext()) { 1336 bncParam* par = itParOrig.next(); 1337 delete par; 1338 } 1339 emit newMessage(_log, false); 1340 return failure; 1341 } 1342 } 1343 else { 1344 if (epoData->sizeGPS() < MINOBS) { 1345 1346 _QQ = QQ_orig; 1347 QVectorIterator<bncParam*> itPar(_params); 1348 while (itPar.hasNext()) { 1349 bncParam* par = itPar.next(); 1350 delete par; 1351 } 1352 _params.clear(); 1353 1354 QVectorIterator<bncParam*> itParOrig(params_orig); 1355 while (itParOrig.hasNext()) { 1356 bncParam* par = itParOrig.next(); 1357 _params.push_back(par); 1358 } 1359 1360 _log += "bncModel::update_p: not enough data\n"; 1324 1361 emit newMessage(_log, false); 1325 1362 return failure; … … 1426 1463 } 1427 1464 1465 QVectorIterator<bncParam*> itParOrig(params_orig); 1466 while (itParOrig.hasNext()) { 1467 bncParam* par = itParOrig.next(); 1468 delete par; 1469 } 1428 1470 return success; 1429 1471 } -
trunk/BNC/ppp.gpt
r3321 r3322 25 25 26 26 set ylabel "meters" 27 set yrange [-2.5:2.5]27 #set yrange [-2.5:2.5] 28 28 29 29 set ytics nomirror
Note:
See TracChangeset
for help on using the changeset viewer.