Changeset 2782 in ntrip
- Timestamp:
- Dec 12, 2010, 7:11:32 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncmodel.cpp ¶
r2781 r2782 64 64 const double MAXRES_PHASE_GAL = 9999.10; 65 65 66 const double _sigP3_gal = 9999.0;67 const double _sigL3_gal = 0.10;68 69 66 // Constructor 70 67 //////////////////////////////////////////////////////////////////////////// … … 112 109 } 113 110 111 // Galileo Offset 112 // -------------- 113 else if (type == GALILEO_OFFSET) { 114 if (satData->prn[0] == 'E') { 115 return 1.0; 116 } 117 else { 118 return 0.0; 119 } 120 } 121 114 122 // Ambiguities 115 123 // ----------- … … 165 173 _sigTrpP = settings.value("pppSigTrpP").toDouble(); 166 174 } 167 _sigClk0 = 1000.0; 168 _sigAmb0 = 1000.0; 175 _sigClk0 = 1000.0; 176 _sigAmb0 = 1000.0; 177 _sigGalileoOffset0 = 1000.0; 178 _sigGalileoOffsetP = 1000.0; 169 179 170 180 // Quick-Start Mode … … 210 220 _params.push_back(new bncParam(bncParam::RECCLK, ++nextPar, "")); 211 221 if (_estTropo) { 212 _params.push_back(new bncParam(bncParam::TROPO, ++nextPar, "")); 222 _params.push_back(new bncParam(bncParam::TROPO, ++nextPar, "")); 223 } 224 if (_useGalileo) { 225 _params.push_back(new bncParam(bncParam::GALILEO_OFFSET, ++nextPar, "")); 213 226 } 214 227 … … 229 242 else if (pp->type == bncParam::TROPO) { 230 243 _QQ(iPar,iPar) = _sigTrp0 * _sigTrp0; 244 } 245 else if (pp->type == bncParam::GALILEO_OFFSET) { 246 _QQ(iPar,iPar) = _sigGalileoOffset0 * _sigGalileoOffset0; 231 247 } 232 248 } … … 522 538 _QQ(iPar,iPar) += _sigTrpP * _sigTrpP; 523 539 } 540 541 // Galileo Offset 542 // -------------- 543 else if (pp->type == bncParam::GALILEO_OFFSET) { 544 _QQ(iPar,iPar) += _sigGalileoOffsetP * _sigGalileoOffsetP; 545 } 524 546 } 525 547 … … 763 785 764 786 ll(iObs) = satData->P3 - cmpValue(satData, false); 765 PP(iObs,iObs) = 1.0 / (_sigP3 _gal* _sigP3_gal);787 PP(iObs,iObs) = 1.0 / (_sigP3 * _sigP3); 766 788 for (int iPar = 1; iPar <= _params.size(); iPar++) { 767 789 AA(iObs, iPar) = _params[iPar-1]->partial(satData, false); … … 771 793 ++iObs; 772 794 ll(iObs) = satData->L3 - cmpValue(satData, true); 773 PP(iObs,iObs) = 1.0 / (_sigL3 _gal* _sigL3_gal);795 PP(iObs,iObs) = 1.0 / (_sigL3 * _sigL3); 774 796 for (int iPar = 1; iPar <= _params.size(); iPar++) { 775 797 if (_params[iPar-1]->type == bncParam::AMB_L3 && … … 832 854 } 833 855 if (_useGalileo) { 834 strA << "resGalileoP" << setw(8) << setprecision(3) << vv_gal_code.t();856 strA << "Galileo code " << setw(8) << setprecision(3) << vv_gal_code.t(); 835 857 if (_usePhase) { 836 strA << " resGalileoC" << setw(8) << setprecision(3) << vv_gal_phase.t();858 strA << "Galileo phase " << setw(8) << setprecision(3) << vv_gal_phase.t(); 837 859 } 838 860 } … … 875 897 << sqrt(_QQ(par->index,par->index)); 876 898 newPos->xnt[6] = aprTrp + par->xx; 899 } 900 else if (par->type == bncParam::GALILEO_OFFSET) { 901 strB << "\n offset = " << setw(6) << setprecision(3) << par->xx 902 << " +- " << setw(6) << setprecision(3) 903 << sqrt(_QQ(par->index,par->index)); 877 904 } 878 905 } -
TabularUnified trunk/BNC/bncmodel.h ¶
r2780 r2782 38 38 class bncParam { 39 39 public: 40 enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK, TROPO, AMB_L3}; 40 enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK, TROPO, AMB_L3, GALILEO_OFFSET}; 41 41 bncParam(parType typeIn, int indexIn, const QString& prn); 42 42 ~bncParam(); … … 68 68 bncParam* pp = _params[ii]; 69 69 if (pp->type == bncParam::TROPO) { 70 return pp->xx; 71 } 72 } 73 return 0.0; 74 } 75 double Galileo_offset() const { 76 for (int ii = 0; ii < _params.size(); ++ii) { 77 bncParam* pp = _params[ii]; 78 if (pp->type == bncParam::GALILEO_OFFSET) { 70 79 return pp->xx; 71 80 } … … 130 139 double _sigTrp0; 131 140 double _sigTrpP; 141 double _sigGalileoOffset0; 142 double _sigGalileoOffsetP; 132 143 double _sigL3; 133 144 double _sigP3;
Note:
See TracChangeset
for help on using the changeset viewer.