Changeset 3751 in ntrip for trunk/BNC/combination
- Timestamp:
- Mar 30, 2012, 3:44:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3655 r3751 309 309 // Save Orbit-Only Corrections 310 310 // --------------------------- 311 if (newCorr-> raoSet && !newCorr->dClkSet) {311 if (newCorr->tRao.valid() && !newCorr->tClk.valid()) { 312 312 QString corrID = newCorr->ID(); 313 313 if (_orbitCorrs.find(corrID) != _orbitCorrs.end()) { … … 320 320 // Merge with saved orbit correction 321 321 // --------------------------------- 322 else if (newCorr-> dClkSet && !newCorr->raoSet) {322 else if (newCorr->tClk.valid() && !newCorr->tRao.valid()) { 323 323 QString corrID = newCorr->ID(); 324 324 if (_orbitCorrs.find(corrID) != _orbitCorrs.end()) { … … 329 329 // Check Modulo Time 330 330 // ----------------- 331 if (int(newCorr->t t.gpssec()) % moduloTime != 0.0) {331 if (int(newCorr->tClk.gpssec()) % moduloTime != 0.0) { 332 332 delete newCorr; 333 333 return; … … 336 336 // Delete old corrections 337 337 // ---------------------- 338 if (_resTime.valid() && newCorr->t t<= _resTime) {338 if (_resTime.valid() && newCorr->tClk <= _resTime) { 339 339 delete newCorr; 340 340 return; … … 368 368 while (itTime.hasNext()) { 369 369 bncTime epoTime = itTime.next(); 370 if (epoTime < newCorr->t t- moduloTime) {370 if (epoTime < newCorr->tClk - moduloTime) { 371 371 _resTime = epoTime; 372 372 processEpoch(); … … 376 376 // Merge or add the correction 377 377 // --------------------------- 378 QVector<cmbCorr*>& corrs = _buffer[newCorr->t t].corrs;378 QVector<cmbCorr*>& corrs = _buffer[newCorr->tClk].corrs; 379 379 cmbCorr* existingCorr = 0; 380 380 QVectorIterator<cmbCorr*> itCorr(corrs); … … 406 406 ColumnVector oldXC(4); 407 407 ColumnVector oldVV(3); 408 corr->eph->position(corr->t t.gpsw(), corr->tt.gpssec(),408 corr->eph->position(corr->tRao.gpsw(), corr->tRao.gpssec(), 409 409 oldXC.data(), oldVV.data()); 410 410 411 411 ColumnVector newXC(4); 412 412 ColumnVector newVV(3); 413 lastEph->position(corr->t t.gpsw(), corr->tt.gpssec(),413 lastEph->position(corr->tRao.gpsw(), corr->tRao.gpssec(), 414 414 newXC.data(), newVV.data()); 415 415 … … 1154 1154 t_irc bncComb::mergeOrbitCorr(const cmbCorr* orbitCorr, cmbCorr* clkCorr) { 1155 1155 1156 double dt = clkCorr->tt - orbitCorr->tt; 1157 1158 clkCorr->iod = orbitCorr->iod; // is it always correct? 1159 clkCorr->eph = orbitCorr->eph; 1160 1161 clkCorr->rao = orbitCorr->rao 1162 + orbitCorr->dotRao * dt 1163 + orbitCorr->dotDotRao * dt * dt; 1164 1165 clkCorr->dotRao = orbitCorr->dotRao 1166 + orbitCorr->dotDotRao * dt; 1167 1156 clkCorr->iod = orbitCorr->iod; // is it always correct? 1157 clkCorr->eph = orbitCorr->eph; 1158 clkCorr->tRao = orbitCorr->tRao; 1159 clkCorr->rao = orbitCorr->rao; 1160 clkCorr->dotRao = orbitCorr->dotRao; 1168 1161 clkCorr->dotDotRao = orbitCorr->dotDotRao; 1169 1162 1170 clkCorr->raoSet = true;1171 1172 1163 return success; 1173 1164 }
Note:
See TracChangeset
for help on using the changeset viewer.