Changeset 6463 in ntrip for trunk/BNC/src
- Timestamp:
- Dec 27, 2014, 5:47:16 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r6107 r6463 116 116 // 117 117 ////////////////////////////////////////////////////////////////////////////// 118 void t_pppClient::put Biases(const vector<t_satBias*>& biases) {118 void t_pppClient::putCodeBiases(const vector<t_satCodeBias*>& biases) { 119 119 for (unsigned ii = 0; ii < biases.size(); ii++) { 120 _obsPool->put Bias(new t_satBias(*biases[ii]));120 _obsPool->putCodeBias(new t_satCodeBias(*biases[ii])); 121 121 } 122 122 } -
trunk/BNC/src/PPP/pppClient.h
r6135 r6463 28 28 void putOrbCorrections(const std::vector<t_orbCorr*>& corr); 29 29 void putClkCorrections(const std::vector<t_clkCorr*>& corr); 30 void put Biases(const std::vector<t_satBias*>& satBias);30 void putCodeBiases(const std::vector<t_satCodeBias*>& satBias); 31 31 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output); 32 32 -
trunk/BNC/src/PPP/pppObsPool.cpp
r6107 r6463 42 42 t_pppObsPool::t_pppObsPool() { 43 43 for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) { 44 _sat Biases[ii] = 0;44 _satCodeBiases[ii] = 0; 45 45 } 46 46 } … … 50 50 t_pppObsPool::~t_pppObsPool() { 51 51 for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) { 52 delete _sat Biases[ii];52 delete _satCodeBiases[ii]; 53 53 } 54 54 while (_epochs.size() > 0) { … … 60 60 // 61 61 ///////////////////////////////////////////////////////////////////////////// 62 void t_pppObsPool::put Bias(t_satBias* satBias) {63 int iPrn = sat Bias->_prn.toInt();64 delete _sat Biases[iPrn];65 _sat Biases[iPrn] = satBias;62 void t_pppObsPool::putCodeBias(t_satCodeBias* satCodeBias) { 63 int iPrn = satCodeBias->_prn.toInt(); 64 delete _satCodeBiases[iPrn]; 65 _satCodeBiases[iPrn] = satCodeBias; 66 66 } 67 67 -
trunk/BNC/src/PPP/pppObsPool.h
r5826 r6463 26 26 t_pppObsPool(); 27 27 ~t_pppObsPool(); 28 void put Bias(t_satBias* satBias);28 void putCodeBias(t_satCodeBias* satCodeBias); 29 29 30 30 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector); 31 31 32 const t_sat Bias* satBias(const t_prn& prn) const {33 return _sat Biases[prn.toInt()];32 const t_satCodeBias* satCodeBias(const t_prn& prn) const { 33 return _satCodeBiases[prn.toInt()]; 34 34 } 35 35 … … 44 44 45 45 private: 46 t_sat Bias* _satBiases[t_prn::MAXPRN+1];46 t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1]; 47 47 std::deque<t_epoch*> _epochs; 48 48 }; -
trunk/BNC/src/PPP/pppSatObs.cpp
r6406 r6463 378 378 _model._windUp = station->windUp(_time, _prn, rSat); 379 379 380 // Code and PhaseBiases381 // ----------- ----------382 const t_sat Bias* satBias = PPP_CLIENT->obsPool()->satBias(_prn);383 if (sat Bias) {384 for (unsigned ii = 0; ii < sat Bias->_bias.size(); ii++) {385 const t_frq Bias& bias = satBias->_bias[ii];380 // Code Biases 381 // ----------- 382 const t_satCodeBias* satCodeBias = PPP_CLIENT->obsPool()->satCodeBias(_prn); 383 if (satCodeBias) { 384 for (unsigned ii = 0; ii < satCodeBias->_bias.size(); ii++) { 385 const t_frqCodeBias& bias = satCodeBias->_bias[ii]; 386 386 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 387 387 const t_frqObs* obs = _obs[iFreq]; 388 388 if (obs && obs->_rnxType2ch == bias._rnxType2ch) { 389 _model._codeBias[iFreq] = bias._code; 390 _model._phaseBias[iFreq] = bias._phase; 389 _model._codeBias[iFreq] = bias._value; 391 390 } 392 391 } -
trunk/BNC/src/PPP_free/pppClient.h
r6102 r6463 46 46 void putOrbCorrections(const std::vector<t_orbCorr*>& corr); 47 47 void putClkCorrections(const std::vector<t_clkCorr*>& corr); 48 void putBiases(const std::vector<t_sat Bias*>& satBias);48 void putBiases(const std::vector<t_satCodeBias*>& satCodeBias); 49 49 std::ostringstream& log() {return *_log;} 50 50 const t_pppOptions* opt() const {return _opt;} -
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r6462 r6463 334 334 // Code Biases 335 335 // ----------- 336 QList<t_sat Bias> satBiases;336 QList<t_satCodeBias> satCodeBiases; 337 337 for (unsigned ii = 0; ii < CLOCKORBIT_NUMGPS + _codeBias.NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) { 338 338 char sysCh = ' '; … … 346 346 continue; 347 347 } 348 t_satBias satBias; 349 satBias._prn.set(sysCh, _codeBias.Sat[ii].ID); 350 satBias._time = _lastTime; 351 satBias._nx = 0; 352 satBias._jumpCount = 0; 348 t_satCodeBias satCodeBias; 349 satCodeBias._prn.set(sysCh, _codeBias.Sat[ii].ID); 350 satCodeBias._time = _lastTime; 353 351 for (unsigned jj = 0; jj < _codeBias.Sat[ii].NumberOfCodeBiases; jj++) { 354 352 } -
trunk/BNC/src/pppInclude.h
r6141 r6463 116 116 virtual void putOrbCorrections(const std::vector<t_orbCorr*>& corr) = 0; 117 117 virtual void putClkCorrections(const std::vector<t_clkCorr*>& corr) = 0; 118 virtual void putBiases(const std::vector<t_sat Bias*>& satBias) = 0;118 virtual void putBiases(const std::vector<t_satCodeBias*>& satCodeBias) = 0; 119 119 }; 120 120 -
trunk/BNC/src/satObs.h
r6462 r6463 93 93 }; 94 94 95 class t_frq Bias {95 class t_frqCodeBias { 96 96 public: 97 t_frqBias() { 98 _code = 0.0; 99 _codeValid = false; 100 _phase = 0.0; 101 _phaseValid = false; 97 t_frqCodeBias() { 98 _value = 0.0; 102 99 } 103 100 std::string _rnxType2ch; 104 double _code; 105 bool _codeValid; 106 double _phase; 107 bool _phaseValid; 101 double _value; 108 102 }; 109 103 110 class t_sat Bias {104 class t_satCodeBias { 111 105 public: 112 std::string _staID; 113 t_prn _prn; 114 bncTime _time; 115 int _nx; 116 int _jumpCount; 117 std::vector<t_frqBias> _bias; 106 std::string _staID; 107 t_prn _prn; 108 bncTime _time; 109 std::vector<t_frqCodeBias> _bias; 118 110 }; 119 111
Note:
See TracChangeset
for help on using the changeset viewer.