- Timestamp:
- Jun 25, 2015, 11:21:21 AM (9 years ago)
- Location:
- trunk/BNC/src/PPP_SSR_I
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_SSR_I/pppFilter.cpp
r6920 r6968 59 59 const double MAXRES_PHASE_GLONASS = 2.98 * 0.03; 60 60 const double GLONASS_WEIGHT_FACTOR = 1.0; 61 const double BDS_WEIGHT_FACTOR = 2.0; 61 62 62 63 #define LOG (_pppClient->log()) … … 132 133 } 133 134 135 // BDS Offset 136 // ---------- 137 else if (type == BDS_OFFSET) { 138 if (satData->prn[0] == 'C') { 139 return 1.0; 140 } 141 else { 142 return 0.0; 143 } 144 } 145 134 146 // Ambiguities 135 147 // ----------- … … 221 233 if (OPT->useSystem('E')) { 222 234 _params.push_back(new t_pppParam(t_pppParam::GALILEO_OFFSET, ++nextPar, "")); 223 } 235 }/* 236 if (OPT->useSystem('C')) { 237 _params.push_back(new t_pppParam(t_pppParam::BDS_OFFSET, ++nextPar, "")); 238 }*/ 224 239 225 240 _QQ.ReSize(_params.size()); … … 242 257 } 243 258 else if (pp->type == t_pppParam::GALILEO_OFFSET) { 259 _QQ(iPar,iPar) = 1000.0 * 1000.0; 260 } 261 else if (pp->type == t_pppParam::BDS_OFFSET) { 244 262 _QQ(iPar,iPar) = 1000.0 * 1000.0; 245 263 } … … 340 358 //frqB = t_frequency::E5; -"- 341 359 } 342 360 else if (satData->prn[0] == 'C') { 361 offset = Bds_offset(); 362 //frqA = t_frequency::C2; as soon as available 363 //frqB = t_frequency::C7; -"- 364 } 343 365 double phaseCenter = 0.0; 344 366 if (_antex) { … … 505 527 _QQ(iPar,iPar) += 0.1 * 0.1; 506 528 } 529 530 else if (pp->type == t_pppParam::BDS_OFFSET) { 531 _QQ(iPar,iPar) += 0.1 * 0.1;//TODO 532 } 507 533 } 508 534 } … … 510 536 // Add New Ambiguities if necessary 511 537 // -------------------------------- 512 if (OPT->ambLCs('G').size() || OPT->ambLCs('R').size() || OPT->ambLCs('E').size()) { 538 if (OPT->ambLCs('G').size() || OPT->ambLCs('R').size() || 539 OPT->ambLCs('E').size() || OPT->ambLCs('C').size()) { 513 540 514 541 // Make a copy of QQ and xx, set parameter indices … … 635 662 << sqrt(_QQ(par->index,par->index)); 636 663 } 664 else if (par->type == t_pppParam::BDS_OFFSET) { 665 LOG << "\n offBds = " << setw(10) << setprecision(3) << par->xx 666 << " +- " << setw(6) << setprecision(3) 667 << sqrt(_QQ(par->index,par->index)); 668 } 637 669 } 638 670 … … 856 888 if (satData->system() == 'R') { 857 889 sigL3 *= GLONASS_WEIGHT_FACTOR; 890 } 891 if (satData->system() == 'C') { 892 sigL3 *= BDS_WEIGHT_FACTOR; 858 893 } 859 894 PP(iObs,iObs) = 1.0 / (sigL3 * sigL3) / (ellWgtCoef * ellWgtCoef); … … 966 1001 // ------------------------------------------------------------- 967 1002 bool usePhase = OPT->ambLCs('G').size() || OPT->ambLCs('R').size() || 968 OPT->ambLCs('E').size() ;1003 OPT->ambLCs('E').size() || OPT->ambLCs('C').size() ; 969 1004 970 1005 for (int iPhase = 0; iPhase <= (usePhase ? 1 : 0); iPhase++) { -
trunk/BNC/src/PPP_SSR_I/pppFilter.h
r6875 r6968 131 131 public: 132 132 enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK, TROPO, AMB_L3, 133 GLONASS_OFFSET, GALILEO_OFFSET };133 GLONASS_OFFSET, GALILEO_OFFSET, BDS_OFFSET}; 134 134 t_pppParam(parType typeIn, int indexIn, const QString& prn); 135 135 ~t_pppParam(); … … 197 197 return 0.0; 198 198 } 199 199 double Bds_offset() const { 200 for (int ii = 0; ii < _params.size(); ++ii) { 201 t_pppParam* pp = _params[ii]; 202 if (pp->type == t_pppParam::BDS_OFFSET) { 203 return pp->xx; 204 } 205 } 206 return 0.0; 207 } 200 208 private: 201 209 void reset();
Note:
See TracChangeset
for help on using the changeset viewer.