Changeset 5826 in ntrip for trunk/BNC/src
- Timestamp:
- Aug 6, 2014, 1:39:41 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r5825 r5826 51 51 #include "pppEphPool.h" 52 52 #include "pppObsPool.h" 53 #include "pppSatBias.h"54 53 #include "bncconst.h" 55 54 #include "bncutils.h" … … 78 77 _log = new ostringstream(); 79 78 _ephPool = new t_pppEphPool(); 80 _obsPool = new t_ frqObsPool();79 _obsPool = new t_pppObsPool(); 81 80 _staRover = new t_pppStation(); 82 81 _filter = new t_pppFilter(); … … 142 141 // 143 142 ////////////////////////////////////////////////////////////////////////////// 144 void t_pppClient::putBiases(const vector<t_satBias es*>& biases) {143 void t_pppClient::putBiases(const vector<t_satBias*>& biases) { 145 144 for (unsigned ii = 0; ii < biases.size(); ii++) { 146 _obsPool->putBias es(new t_pppSatBias(*biases[ii]));145 _obsPool->putBias(new t_satBias(*biases[ii])); 147 146 } 148 147 } -
trunk/BNC/src/PPP/pppClient.h
r5823 r5826 14 14 15 15 class t_pppEphPool; 16 class t_ frqObsPool;16 class t_pppObsPool; 17 17 class t_pppSatObs; 18 18 class t_pppStation; … … 27 27 void putOrbCorrections(const std::vector<t_orbCorr*>& corr); 28 28 void putClkCorrections(const std::vector<t_clkCorr*>& corr); 29 void putBiases(const std::vector<t_satBias es*>& biases);29 void putBiases(const std::vector<t_satBias*>& satBias); 30 30 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output); 31 31 32 32 const t_pppEphPool* ephPool() const {return _ephPool;} 33 const t_ frqObsPool* obsPool() const {return _obsPool;}33 const t_pppObsPool* obsPool() const {return _obsPool;} 34 34 const bncAntex* antex() const {return _antex;} 35 35 const t_pppStation* staRover() const {return _staRover;} … … 57 57 t_output* _output; 58 58 t_pppEphPool* _ephPool; 59 t_ frqObsPool* _obsPool;59 t_pppObsPool* _obsPool; 60 60 bncTime _epoTimeRover; 61 61 t_pppStation* _staRover; -
trunk/BNC/src/PPP/pppFilter.cpp
r5819 r5826 30 30 // Process Single Epoch 31 31 //////////////////////////////////////////////////////////////////////////// 32 t_irc t_pppFilter::processEpoch(t_ frqObsPool* obsPool) {32 t_irc t_pppFilter::processEpoch(t_pppObsPool* obsPool) { 33 33 34 34 _numSat = 0; … … 40 40 // Vector of all Observations 41 41 // -------------------------- 42 t_ frqObsPool::t_epoch* epoch = obsPool->lastEpoch();42 t_pppObsPool::t_epoch* epoch = obsPool->lastEpoch(); 43 43 if (!epoch) { 44 44 return failure; -
trunk/BNC/src/PPP/pppFilter.h
r5819 r5826 12 12 13 13 class t_pppParlist; 14 class t_ frqObsPool;14 class t_pppObsPool; 15 15 class t_pppSatObs; 16 16 … … 20 20 ~t_pppFilter(); 21 21 22 t_irc processEpoch(t_ frqObsPool* obsPool);22 t_irc processEpoch(t_pppObsPool* obsPool); 23 23 24 24 const ColumnVector& x() const {return _xFlt;} -
trunk/BNC/src/PPP/pppObsPool.cpp
r5819 r5826 46 46 // Constructor 47 47 ///////////////////////////////////////////////////////////////////////////// 48 t_ frqObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector) {48 t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector) { 49 49 _epoTime = epoTime; 50 50 for (unsigned ii = 0; ii < obsVector.size(); ii++) { … … 56 56 // Destructor 57 57 ///////////////////////////////////////////////////////////////////////////// 58 t_ frqObsPool::t_epoch::~t_epoch() {58 t_pppObsPool::t_epoch::~t_epoch() { 59 59 for (unsigned ii = 0; ii < _obsVector.size(); ii++) { 60 60 delete _obsVector[ii]; … … 64 64 // Constructor 65 65 ///////////////////////////////////////////////////////////////////////////// 66 t_ frqObsPool::t_frqObsPool() {66 t_pppObsPool::t_pppObsPool() { 67 67 for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) { 68 68 _satBiases[ii] = 0; … … 72 72 // Destructor 73 73 ///////////////////////////////////////////////////////////////////////////// 74 t_ frqObsPool::~t_frqObsPool() {74 t_pppObsPool::~t_pppObsPool() { 75 75 for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) { 76 76 delete _satBiases[ii]; … … 84 84 // 85 85 ///////////////////////////////////////////////////////////////////////////// 86 void t_ frqObsPool::putBiases(t_pppSatBias* satBias) {86 void t_pppObsPool::putBias(t_satBias* satBias) { 87 87 int iPrn = satBias->prn().toInt(); 88 88 delete _satBiases[iPrn]; … … 92 92 // 93 93 ///////////////////////////////////////////////////////////////////////////// 94 void t_ frqObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector) {94 void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector) { 95 95 const unsigned MAXSIZE = 2; 96 96 _epochs.push_back(new t_epoch(epoTime, obsVector)); -
trunk/BNC/src/PPP/pppObsPool.h
r5822 r5826 5 5 #include <deque> 6 6 #include "pppSatObs.h" 7 #include "pppSatBias.h"8 7 #include "bnctime.h" 9 8 10 9 namespace BNC_PPP { 11 10 12 class t_ frqObsPool {11 class t_pppObsPool { 13 12 public: 14 13 … … 25 24 }; 26 25 27 t_ frqObsPool();28 ~t_ frqObsPool();29 void putBias es(t_pppSatBias* satBias);26 t_pppObsPool(); 27 ~t_pppObsPool(); 28 void putBias(t_satBias* satBias); 30 29 31 30 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector); 32 31 33 const t_ pppSatBias* satBias(const t_prn& prn) const {32 const t_satBias* satBias(const t_prn& prn) const { 34 33 return _satBiases[prn.toInt()]; 35 34 } 35 36 36 t_epoch* lastEpoch() { 37 37 if (_epochs.size()) { … … 44 44 45 45 private: 46 t_ pppSatBias*_satBiases[t_prn::MAXPRN+1];46 t_satBias* _satBiases[t_prn::MAXPRN+1]; 47 47 std::deque<t_epoch*> _epochs; 48 48 };
Note:
See TracChangeset
for help on using the changeset viewer.