- Timestamp:
- Aug 18, 2015, 4:13:05 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r7218 r7231 332 332 } 333 333 334 // 335 ////////////////////////////////////////////////////////////////////////////// 336 void t_pppClient::putTec(const t_vTec* vTec) { 337 _pppUtils->putTec(new t_vTec(*vTec)); 338 } 339 334 340 // 335 341 ////////////////////////////////////////////////////////////////////////////// -
trunk/BNC/src/PPP/pppClient.h
r7224 r7231 44 44 ~t_pppClient(); 45 45 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output); 46 void putEphemeris(const t_eph* eph); 46 void putEphemeris(const t_eph* eph); 47 void putTec(const t_vTec* vTec); 47 48 void putOrbCorrections(const std::vector<t_orbCorr*>& corr); 48 49 void putClkCorrections(const std::vector<t_clkCorr*>& corr); -
trunk/BNC/src/PPP/pppUtils.cpp
r7218 r7231 19 19 #include "pppModel.h" 20 20 21 #include <iostream> // std::cout, std::ios 22 #include <sstream> // std::ostringstream 23 21 24 using namespace BNC_PPP; 22 25 using namespace std; … … 30 33 _satCodeBiases[ii] = 0; 31 34 } 35 _vTec = 0; 32 36 } 33 37 … … 38 42 delete _satCodeBiases[ii]; 39 43 } 44 delete _vTec; 40 45 } 41 46 … … 47 52 _satCodeBiases[iPrn] = satCodeBias; 48 53 } 54 55 // 56 ////////////////////////////////////////////////////////////////////////////// 57 void t_pppUtils::putTec(t_vTec* vTec) { 58 delete _vTec; 59 _vTec = vTec; 60 } -
trunk/BNC/src/PPP/pppUtils.h
r7218 r7231 16 16 return _satCodeBiases[prn.toInt()]; 17 17 } 18 void putTec(t_vTec* vTec); 19 const t_vTec* vTec() const { 20 return _vTec; 21 } 18 22 19 23 private: 20 24 t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1]; 21 25 t_vTec* _vTec; 22 26 }; 23 27 -
trunk/BNC/src/PPP_RTK/pppClient.cpp
r7227 r7231 98 98 } 99 99 100 // 101 ////////////////////////////////////////////////////////////////////////////// 102 void t_pppClient::putTec(const t_vTec* vTec) { 103 _staRover->putTec(new t_vTec(*vTec)); 104 } 105 100 106 // 101 107 ////////////////////////////////////////////////////////////////////////////// … … 122 128 } 123 129 124 // 130 // 125 131 ////////////////////////////////////////////////////////////////////////////// 126 132 t_irc t_pppClient::prepareObs(const vector<t_satObs*>& satObs, -
trunk/BNC/src/PPP_RTK/pppClient.h
r7227 r7231 26 26 27 27 void putEphemeris(const t_eph* eph); 28 void putTec(const t_vTec* vTec); 28 29 void putOrbCorrections(const std::vector<t_orbCorr*>& corr); 29 30 void putClkCorrections(const std::vector<t_clkCorr*>& corr); -
trunk/BNC/src/PPP_RTK/pppStation.cpp
r7227 r7231 26 26 t_pppStation::t_pppStation() { 27 27 _windUp = new t_windUp(); 28 _vTec = 0; 28 29 } 29 30 … … 32 33 t_pppStation::~t_pppStation() { 33 34 delete _windUp; 35 delete _vTec; 34 36 } 35 37 … … 57 59 } 58 60 61 // 62 ////////////////////////////////////////////////////////////////////////////// 63 void t_pppStation::putTec(t_vTec* vTec) { 64 delete _vTec; 65 _vTec = vTec; 66 } 67 -
trunk/BNC/src/PPP_RTK/pppStation.h
r7227 r7231 30 30 double dClk() const {return _dClk;} 31 31 double windUp(const bncTime& time, t_prn prn, const ColumnVector& rSat) const; 32 void putTec(t_vTec* vTec); 33 const t_vTec* vTec() const { 34 return _vTec; 35 } 32 36 33 37 private: … … 43 47 bncTime _timeCheck; 44 48 ColumnVector _xyzCheck; 49 t_vTec* _vTec; 45 50 }; 46 51 -
trunk/BNC/src/pppRun.cpp
r7169 r7231 101 101 this, SLOT(slotNewBDSEph(t_ephBDS)),conType); 102 102 103 connect(BNC_CORE, SIGNAL(newTec(t_vTec)), 104 this, SLOT(slotNewTec(t_vTec)),conType); 105 103 106 connect(BNC_CORE, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), 104 107 this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)),conType); … … 315 318 } 316 319 } 317 320 321 // 322 //////////////////////////////////////////////////////////////////////////// 323 void t_pppRun::slotNewTec(t_vTec vTec) { 324 if (vTec._layers.size() == 0) { 325 return; 326 } 327 328 if (_opt->_realTime) { 329 if (_opt->_corrMount.empty() || _opt->_corrMount != vTec._staID) { 330 return; 331 } 332 } 333 334 _pppClient->putTec(&vTec); 335 } 336 318 337 // 319 338 //////////////////////////////////////////////////////////////////////////// … … 393 412 if (!_opt->_corrFile.empty()) { 394 413 _corrFile = new t_corrFile(QString(_opt->_corrFile.c_str())); 414 connect(_corrFile, SIGNAL(newTec(t_vTec)), 415 this, SLOT(slotNewTec(t_vTec))); 395 416 connect(_corrFile, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), 396 417 this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>))); -
trunk/BNC/src/pppRun.h
r6966 r7231 40 40 void slotNewGalileoEph(t_ephGal); 41 41 void slotNewBDSEph(t_ephBDS); 42 void slotNewTec(t_vTec); 42 43 void slotNewOrbCorrections(QList<t_orbCorr> orbCorr); 43 44 void slotNewClkCorrections(QList<t_clkCorr> clkCorr);
Note:
See TracChangeset
for help on using the changeset viewer.