- Timestamp:
- Oct 23, 2014, 10:16:27 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppParlist.cpp
r6107 r6254 11 11 * Created: 29-Jul-2014 12 12 * 13 * Changes: 13 * Changes: 14 14 * 15 15 * -----------------------------------------------------------------------*/ … … 103 103 } 104 104 105 // 106 //////////////////////////////////////////////////////////////////////////// 107 double t_pppParam::partial(const bncTime& /* epoTime */, const t_pppSatObs* obs, 105 // 106 //////////////////////////////////////////////////////////////////////////// 107 double t_pppParam::partial(const bncTime& /* epoTime */, const t_pppSatObs* obs, 108 108 const t_lc::type& tLC) const { 109 109 … … 141 141 obs->lcCoeff(tLC, codeCoeff, phaseCoeff); 142 142 if (_tLC == t_lc::l1) { 143 return obs->lambda(t_lc::l1) * phaseCoeff[t_lc::toFreq(obs->prn().system(),t_lc::l1)]; 143 return obs->lambda(t_lc::l1) * phaseCoeff[t_lc::toFreq(obs->prn().system(),t_lc::l1)]; 144 144 } 145 145 else if (_tLC == t_lc::l2) { 146 return obs->lambda(t_lc::l2) * phaseCoeff[t_lc::toFreq(obs->prn().system(),t_lc::l2)]; 146 return obs->lambda(t_lc::l2) * phaseCoeff[t_lc::toFreq(obs->prn().system(),t_lc::l2)]; 147 147 } 148 148 } … … 150 150 return 0.0; 151 151 case trp: 152 return 1.0 / sin(obs->eleSat()); 152 return 1.0 / sin(obs->eleSat()); 153 153 } 154 154 … … 156 156 } 157 157 158 // 158 // 159 159 //////////////////////////////////////////////////////////////////////////// 160 160 string t_pppParam::toString() const { … … 163 163 case crdX: 164 164 ss << "CRD_X"; 165 break; 165 break; 166 166 case crdY: 167 167 ss << "CRD_Y"; … … 199 199 } 200 200 201 // 201 // 202 202 //////////////////////////////////////////////////////////////////////////// 203 203 t_irc t_pppParlist::set(const bncTime& epoTime, const std::vector<t_pppSatObs*>& obsVector) { … … 211 211 bool remove = false; 212 212 213 if (par->epoSpec()) { 213 if (par->epoSpec()) { 214 214 remove = true; 215 215 } … … 258 258 } 259 259 } 260 } 260 } 261 261 262 262 // Required Set of Parameters … … 336 336 } 337 337 338 // 338 // 339 339 //////////////////////////////////////////////////////////////////////////// 340 340 void t_pppParlist::printResult(const bncTime& epoTime, const SymmetricMatrix& QQ, … … 342 342 343 343 string epoTimeStr = string(epoTime); 344 const t_pppStation* sta = PPP_CLIENT->staRover(); 344 345 345 346 LOG << endl; … … 361 362 else { 362 363 int ind = par->indexNew(); 364 double apr = (par->type() == t_pppParam::trp) ? 365 t_tropo::delay_saast(sta->xyzApr(), M_PI/2.0) : par->x0(); 363 366 LOG << epoTimeStr << ' ' << par->toString() << ' ' 364 << setw(10) << setprecision(4) << par->x0()<< ' '367 << setw(10) << setprecision(4) << apr << ' ' 365 368 << showpos << setw(10) << setprecision(4) << xx[ind] << noshowpos << " +- " 366 369 << setw(8) << setprecision(4) << sqrt(QQ[ind][ind]); … … 372 375 } 373 376 } 374 377 375 378 if (parX && parY && parZ) { 376 const t_pppStation* sta = PPP_CLIENT->staRover(); 377 378 ColumnVector xyz(3); 379 380 ColumnVector xyz(3); 379 381 xyz[0] = xx[parX->indexNew()]; 380 382 xyz[1] = xx[parY->indexNew()]; … … 392 394 << " X = " << setprecision(4) << sta->xyzApr()[0] + xyz[0] << " +- " 393 395 << setprecision(4) << sqrt(QQxyz[0][0]) 394 396 395 397 << " Y = " << setprecision(4) << sta->xyzApr()[1] + xyz[1] << " +- " 396 398 << setprecision(4) << sqrt(QQxyz[1][1]) … … 407 409 << " dU = " << setprecision(4) << neu[2] << " +- " 408 410 << setprecision(4) << sqrt(QQneu[2][2]) 409 411 410 412 << endl; 411 413 }
Note:
See TracChangeset
for help on using the changeset viewer.