Changeset 5823 in ntrip
- Timestamp:
- Aug 6, 2014, 1:14:39 PM (11 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/PPP/pppClient.cpp ¶
r5819 r5823 150 150 // 151 151 ////////////////////////////////////////////////////////////////////////////// 152 t_irc t_pppClient::prepareObs(const vector<t_satObs*>& pppSatObs,152 t_irc t_pppClient::prepareObs(const vector<t_satObs*>& satObs, 153 153 vector<t_pppSatObs*>& obsVector, bncTime& epoTime) { 154 154 // Default … … 159 159 // ----------------------------------- 160 160 int numValidGPS = 0; 161 for (unsigned ii = 0; ii < pppSatObs.size(); ii++) {162 char system = pppSatObs[ii]->_prn.system();161 for (unsigned ii = 0; ii < satObs.size(); ii++) { 162 char system = satObs[ii]->_prn.system(); 163 163 if (system == 'G' || (system == 'R' && OPT->useGlonass())) { 164 t_pppSatObs* satObs = new t_pppSatObs(*pppSatObs[ii]);165 if ( satObs->isValid()) {166 obsVector.push_back( satObs);167 if ( satObs->prn().system() == 'G') {164 t_pppSatObs* pppSatObs = new t_pppSatObs(*satObs[ii]); 165 if (pppSatObs->isValid()) { 166 obsVector.push_back(pppSatObs); 167 if (pppSatObs->prn().system() == 'G') { 168 168 ++numValidGPS; 169 169 } 170 170 } 171 171 else { 172 delete satObs;172 delete pppSatObs; 173 173 } 174 174 } … … 402 402 // 403 403 ////////////////////////////////////////////////////////////////////////////// 404 void t_pppClient::processEpoch(const vector<t_satObs*>& pppSatObs, t_output* output) {404 void t_pppClient::processEpoch(const vector<t_satObs*>& satObs, t_output* output) { 405 405 406 406 try { … … 409 409 // Prepare Observations of the Rover 410 410 // --------------------------------- 411 if (prepareObs( pppSatObs, _obsRover, _epoTimeRover) != success) {411 if (prepareObs(satObs, _obsRover, _epoTimeRover) != success) { 412 412 return finish(failure); 413 413 } -
TabularUnified trunk/BNC/src/PPP/pppClient.h ¶
r5819 r5823 28 28 void putClkCorrections(const std::vector<t_clkCorr*>& corr); 29 29 void putBiases(const std::vector<t_satBiases*>& biases); 30 void processEpoch(const std::vector<t_satObs*>& pppSatObs, t_output* output);30 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output); 31 31 32 32 const t_pppEphPool* ephPool() const {return _ephPool;} … … 47 47 void finish(t_irc irc); 48 48 void clearObs(); 49 t_irc prepareObs(const std::vector<t_satObs*>& pppSatObs,49 t_irc prepareObs(const std::vector<t_satObs*>& satObs, 50 50 std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime); 51 51 t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc, … … 55 55 double cmpOffGG(std::vector<t_pppSatObs*>& obsVector); 56 56 57 t_output* _output; 57 t_output* _output; 58 58 t_pppEphPool* _ephPool; 59 59 t_frqObsPool* _obsPool; 60 bncTime _epoTimeRover; 60 bncTime _epoTimeRover; 61 61 t_pppStation* _staRover; 62 bncAntex* _antex; 62 bncAntex* _antex; 63 63 t_pppFilter* _filter; 64 double _offGG; 64 double _offGG; 65 65 std::vector<t_pppSatObs*> _obsRover; 66 std::ostringstream* _log; 66 std::ostringstream* _log; 67 67 t_pppOptions* _opt; 68 t_tides* _tides; 68 t_tides* _tides; 69 69 }; 70 70 -
TabularUnified trunk/BNC/src/PPP/pppSatObs.h ¶
r5820 r5823 16 16 class t_pppSatObs { 17 17 public: 18 t_pppSatObs(const t_satObs& pppSatObs);18 t_pppSatObs(const t_satObs& satObs); 19 19 ~t_pppSatObs(); 20 20 bool isValid() const {return _valid;} -
TabularUnified trunk/BNC/src/PPP/pppThread.cpp ¶
r5819 r5823 197 197 // -------------------------------------------------------------- 198 198 if (epoData != 0) { 199 epoData->_ pppSatObs.push_back(newObs);199 epoData->_satObs.push_back(newObs); 200 200 map<string, t_frqObs*> pppObsMap; 201 201 for (unsigned iEntry = 0; iEntry < GNSSENTRY_NUMBER; iEntry++) { … … 233 233 if (_pppEpochs.size() > 1) { 234 234 235 const vector<t_satObs*>& pppSatObs = _pppEpochs.front()->_pppSatObs;235 const vector<t_satObs*>& satObs = _pppEpochs.front()->_satObs; 236 236 237 237 t_output output; 238 _pppClient->processEpoch( pppSatObs, &output);238 _pppClient->processEpoch(satObs, &output); 239 239 240 240 delete _pppEpochs.front(); _pppEpochs.pop_front(); -
TabularUnified trunk/BNC/src/PPP/pppThread.h ¶
r5819 r5823 33 33 t_pppEpoData() {} 34 34 ~t_pppEpoData() { 35 for (unsigned ii = 0; ii < _ pppSatObs.size(); ii++) {36 delete _ pppSatObs[ii];35 for (unsigned ii = 0; ii < _satObs.size(); ii++) { 36 delete _satObs[ii]; 37 37 } 38 38 } 39 bncTime 40 std::vector<t_satObs*> _ pppSatObs;39 bncTime _time; 40 std::vector<t_satObs*> _satObs; 41 41 }; 42 42
Note:
See TracChangeset
for help on using the changeset viewer.