Changeset 6060 in ntrip for trunk/BNC/src/PPP_free
- Timestamp:
- Sep 7, 2014, 9:17:24 AM (10 years ago)
- Location:
- trunk/BNC/src/PPP_free
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/bncmodel.cpp
r6059 r6060 52 52 #include "bncantex.h" 53 53 #include "pppOptions.h" 54 #include "pppModel.h" 54 55 55 56 using namespace BNC_PPP; … … 156 157 _opt = pppClient->opt(); 157 158 159 _tides = new t_tides(); 160 158 161 // Antenna Name, ANTEX File 159 162 // ------------------------ 160 163 _antex = 0; 161 if (!_opt->antexFile.isEmpty()) { 162 _antex = new bncAntex(); 163 if (_antex->readFile(_opt->antexFile) != success) { 164 _pppClient->emitNewMessage("wrong ANTEX file", true); 165 delete _antex; 166 _antex = 0; 167 } 164 if (!_opt->_antexFileName.empty()) { 165 _antex = new bncAntex(_opt->_antexFileName.c_str()); 168 166 } 169 167 … … 181 179 //////////////////////////////////////////////////////////////////////////// 182 180 bncModel::~bncModel() { 181 delete _tides; 183 182 for (int ii = 0; ii < _posAverage.size(); ++ii) { 184 183 delete _posAverage[ii]; … … 215 214 _params.push_back(new bncParam(bncParam::CRD_Z, ++nextPar, "")); 216 215 _params.push_back(new bncParam(bncParam::RECCLK, ++nextPar, "")); 217 if (_opt->estTr opo) {216 if (_opt->estTrp()) { 218 217 _params.push_back(new bncParam(bncParam::TROPO, ++nextPar, "")); 219 218 } 220 if (_opt->use Glonass) {219 if (_opt->useSystem('R')) { 221 220 _params.push_back(new bncParam(bncParam::GLONASS_OFFSET, ++nextPar, "")); 222 221 } 223 if (_opt->use Galileo) {222 if (_opt->useSystem('E')) { 224 223 _params.push_back(new bncParam(bncParam::GALILEO_OFFSET, ++nextPar, "")); 225 224 } … … 231 230 pp->xx = 0.0; 232 231 if (pp->isCrd()) { 233 _QQ(iPar,iPar) = _opt-> sigCrd0 * _opt->sigCrd0;232 _QQ(iPar,iPar) = _opt->_aprSigCrd(1) * _opt->_aprSigCrd(1); 234 233 } 235 234 else if (pp->type == bncParam::RECCLK) { 236 _QQ(iPar,iPar) = _opt-> sigClk0 * _opt->sigClk0;235 _QQ(iPar,iPar) = _opt->_noiseClk * _opt->_noiseClk; 237 236 } 238 237 else if (pp->type == bncParam::TROPO) { 239 _QQ(iPar,iPar) = _opt-> sigTrp0 * _opt->sigTrp0;238 _QQ(iPar,iPar) = _opt->_aprSigTrp * _opt->_aprSigTrp; 240 239 pp->xx = lastTrp; 241 240 } 242 241 else if (pp->type == bncParam::GLONASS_OFFSET) { 243 _QQ(iPar,iPar) = _opt->sigGlonassOffset0 * _opt->sigGlonassOffset0;242 _QQ(iPar,iPar) = 1000.0 * 1000.0; 244 243 } 245 244 else if (pp->type == bncParam::GALILEO_OFFSET) { 246 _QQ(iPar,iPar) = _opt->sigGalileoOffset0 * _opt->sigGalileoOffset0;245 _QQ(iPar,iPar) = 1000.0 * 1000.0; 247 246 } 248 247 } … … 317 316 xRec(3) = z(); 318 317 319 tides(_time, xRec);318 xRec += _tides->displacement(_time, xRec); 320 319 321 320 satData->rho = (satData->xx - xRec).norm_Frobenius(); -
trunk/BNC/src/PPP_free/bncmodel.h
r6059 r6060 41 41 class t_epoData; 42 42 class t_satData; 43 class t_tides; 43 44 44 45 class bncParam { … … 163 164 QStringList _outlierGlo; 164 165 bncAntex* _antex; 166 t_tides* _tides; 165 167 }; 166 168
Note:
See TracChangeset
for help on using the changeset viewer.