- Timestamp:
- Sep 14, 2014, 11:06:41 AM (10 years ago)
- Location:
- trunk/BNC/src/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r6157 r6159 361 361 newCorr->_iod = clkCorr._iod; 362 362 newCorr->_acName = acName; 363 newCorr->_clkCorr = new t_clkCorr(clkCorr);363 newCorr->_clkCorr = clkCorr; 364 364 365 365 // Check orbit correction … … 376 376 } 377 377 else { 378 newCorr->_orbCorr = new t_orbCorr(storage[clkCorr._prn]);378 newCorr->_orbCorr = storage[clkCorr._prn]; 379 379 } 380 380 } … … 458 458 corr->_eph = lastEph; 459 459 460 if (corr->_clkCorr) { 461 corr->_clkCorr->_dClk -= dC; 462 } 463 if (corr->_orbCorr) { 464 for (int ii = 0; ii < 3; ii++) { 465 corr->_orbCorr->_xr[ii] += dRAO[ii]; 466 corr->_orbCorr->_dotXr[ii] += dDotRAO[ii]; 467 } 468 } 460 corr->_orbCorr._xr += dRAO; 461 corr->_orbCorr._dotXr += dDotRAO; 462 corr->_clkCorr._dClk -= dC; 469 463 } 470 464 … … 743 737 corr->_iod, 744 738 corr->_dClk * t_CST::c, 745 corr->_orbCorr ->_xr[0],746 corr->_orbCorr ->_xr[1],747 corr->_orbCorr ->_xr[2],739 corr->_orbCorr._xr[0], 740 corr->_orbCorr._xr[1], 741 corr->_orbCorr._xr[2], 748 742 0.0, 749 corr->_orbCorr ->_dotXr[0],750 corr->_orbCorr ->_dotXr[1],751 corr->_orbCorr ->_dotXr[2],743 corr->_orbCorr._dotXr[0], 744 corr->_orbCorr._dotXr[1], 745 corr->_orbCorr._dotXr[2], 752 746 0.0); 753 747 corrLines << line; … … 1064 1058 if (meanRao.find(prn) == meanRao.end()) { 1065 1059 meanRao[prn].ReSize(4); 1066 meanRao[prn].Rows(1,3) = corr->_orbCorr ->_xr;1060 meanRao[prn].Rows(1,3) = corr->_orbCorr._xr; 1067 1061 meanRao[prn](4) = 1; 1068 1062 } 1069 1063 else { 1070 meanRao[prn].Rows(1,3) += corr->_orbCorr ->_xr;1064 meanRao[prn].Rows(1,3) += corr->_orbCorr._xr; 1071 1065 meanRao[prn](4) += 1; 1072 1066 } … … 1090 1084 meanRao[prn](4) = 0; 1091 1085 } 1092 corr->_diffRao = corr->_orbCorr ->_xr - meanRao[prn].Rows(1,3);1086 corr->_diffRao = corr->_orbCorr._xr - meanRao[prn].Rows(1,3); 1093 1087 if (maxDiff.find(prn) == maxDiff.end()) { 1094 1088 maxDiff[prn] = corr; -
trunk/BNC/src/combination/bnccomb.h
r6157 r6159 66 66 public: 67 67 cmbCorr() { 68 _eph = 0; 69 _iod = 0; 70 _orbCorr = 0; 71 _clkCorr = 0; 68 _eph = 0; 69 _iod = 0; 72 70 } 73 ~cmbCorr() { 74 delete _orbCorr; 75 delete _clkCorr; 76 } 71 ~cmbCorr() {} 77 72 QString _prn; 78 73 bncTime _time; 79 74 int _iod; 80 75 const t_eph* _eph; 81 t_orbCorr *_orbCorr; // used for input82 t_clkCorr *_clkCorr; // used for input76 t_orbCorr _orbCorr; // used for input 77 t_clkCorr _clkCorr; // used for input 83 78 QString _acName; 84 79 double _dClk; // used for output
Note:
See TracChangeset
for help on using the changeset viewer.