Changeset 3464 in ntrip for trunk/BNC


Ignore:
Timestamp:
Sep 23, 2011, 6:59:23 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3463 r3464  
    3434const double sig0_offAC    = 1000.0;
    3535const double sig0_offACSat =  100.0;
    36 const double sigP_offACSat =    0.1;
     36const double sigP_offACSat =   0.01;
    3737const double sig0_clkSat   =  100.0;
    3838
     
    423423  for (int iPar = 1; iPar <= _params.size(); iPar++) {
    424424    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 ////    }
    429425    if (pp->epoSpec) {
    430426      pp->xx = 0.0;
     
    746742  return success;
    747743}
    748 
    749 // Change the parameter so that it refers to last received ephemeris
    750 ////////////////////////////////////////////////////////////////////////////
    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->prn
    779     + 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 
  • trunk/BNC/combination/bnccomb.h

    r3461 r3464  
    7979  void printResults(QTextStream& out, const QMap<QString, t_corr*>& resCorr);
    8080  void switchToLastEph(const t_eph* lastEph, t_corr* corr);
    81   void switchToLastEph(const t_eph* lastEph, cmbParam* pp);
    8281
    8382  QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
Note: See TracChangeset for help on using the changeset viewer.