Changeset 3464 in ntrip for trunk/BNC/combination
- Timestamp:
- Sep 23, 2011, 6:59:23 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/combination/bnccomb.cpp ¶
r3463 r3464 34 34 const double sig0_offAC = 1000.0; 35 35 const double sig0_offACSat = 100.0; 36 const double sigP_offACSat = 0.1;36 const double sigP_offACSat = 0.01; 37 37 const double sig0_clkSat = 100.0; 38 38 … … 423 423 for (int iPar = 1; iPar <= _params.size(); iPar++) { 424 424 cmbParam* pp = _params[iPar-1]; 425 //// QString prn = pp->prn;426 //// if (!prn.isEmpty() && _eph.find(prn) != _eph.end()) {427 //// switchToLastEph(_eph[prn]->last, pp);428 //// }429 425 if (pp->epoSpec) { 430 426 pp->xx = 0.0; … … 746 742 return success; 747 743 } 748 749 // Change the parameter so that it refers to last received ephemeris750 ////////////////////////////////////////////////////////////////////////////751 void bncComb::switchToLastEph(const t_eph* lastEph, cmbParam* pp) {752 753 if (pp->type != cmbParam::clkSat) {754 return;755 }756 757 if (pp->eph == 0) {758 pp->eph = lastEph;759 return;760 }761 762 if (pp->eph == lastEph) {763 return;764 }765 766 ColumnVector oldXC(4);767 ColumnVector oldVV(3);768 pp->eph->position(_resTime.gpsw(), _resTime.gpssec(),769 oldXC.data(), oldVV.data());770 771 ColumnVector newXC(4);772 ColumnVector newVV(3);773 lastEph->position(_resTime.gpsw(), _resTime.gpssec(),774 newXC.data(), newVV.data());775 776 double dC = newXC(4) - oldXC(4);777 778 QString msg = "switch param " + pp->prn779 + QString(" %1 -> %2 %3").arg(pp->eph->IOD(),3)780 .arg(lastEph->IOD(),3).arg(dC*t_CST::c, 8, 'f', 4);781 782 emit newMessage(msg.toAscii(), false);783 784 pp->eph = lastEph;785 pp->xx -= dC * t_CST::c;786 }787 -
TabularUnified trunk/BNC/combination/bnccomb.h ¶
r3461 r3464 79 79 void printResults(QTextStream& out, const QMap<QString, t_corr*>& resCorr); 80 80 void switchToLastEph(const t_eph* lastEph, t_corr* corr); 81 void switchToLastEph(const t_eph* lastEph, cmbParam* pp);82 81 83 82 QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
Note:
See TracChangeset
for help on using the changeset viewer.