Ignore:
Timestamp:
Jul 3, 2015, 5:54:39 PM (9 years ago)
Author:
stuerze
Message:

ssr correction results are now introduced to upload a corrected set of clocks and orbits via rtnet format

File:
1 edited

Legend:

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

    r7008 r7012  
    382382    // Check the Ephemeris
    383383    //--------------------
    384     const t_eph* ephLast = _ephUser.ephLast(prn);
    385     const t_eph* ephPrev = _ephUser.ephPrev(prn);
     384    t_eph* ephLast = _ephUser.ephLast(prn);
     385    t_eph* ephPrev = _ephUser.ephPrev(prn);
    386386    if (ephLast == 0) {
    387387      emit newMessage("bncComb: eph not found "  + prn.mid(0,3).toAscii(), true);
     
    426426// Change the correction so that it refers to last received ephemeris
    427427////////////////////////////////////////////////////////////////////////////
    428 void bncComb::switchToLastEph(const t_eph* lastEph, cmbCorr* corr) {
     428void bncComb::switchToLastEph(t_eph* lastEph, cmbCorr* corr) {
    429429
    430430  if (corr->_eph == lastEph) {
     
    714714    ColumnVector xc(4);
    715715    ColumnVector vv(3);
    716     corr->_eph->getCrd(_resTime, xc, vv, false);
    717    
     716    t_orbCorr orbCorr2Use(corr->_orbCorr);
     717    t_clkCorr clkCorr2Use(corr->_clkCorr);
     718    clkCorr2Use._dClk       = corr->_dClkResult *  t_CST::c;
     719    clkCorr2Use._dotDClk    = 0.0;
     720    clkCorr2Use._dotDotDClk = 0.0;
     721
     722    corr->_eph->setClkCorr(dynamic_cast<const t_clkCorr*>(&clkCorr2Use));
     723    corr->_eph->setOrbCorr(dynamic_cast<const t_orbCorr*>(&orbCorr2Use));
     724    corr->_eph->getCrd(_resTime, xc, vv, true);
     725
    718726    // Correction Phase Center --> CoM
    719727    // -------------------------------
     
    726734      }
    727735    }
    728    
    729     outLines += corr->_prn;
     736
     737    outLines += corr->_prn.mid(0,3);
    730738    QString hlp;
    731739    hlp.sprintf(" APC 3 %15.4f %15.4f %15.4f"
     
    733741                " Vel 3 %15.4f %15.4f %15.4f"
    734742                " CoM 3 %15.4f %15.4f %15.4f\n",
    735                 xc(1), xc(2), xc(3), 
    736                 xc(4)*t_CST::c,
     743                xc(1), xc(2), xc(3),
     744                xc(4) *  t_CST::c,
    737745                vv(1), vv(2), vv(3),
    738746                xc(1)-dx(1), xc(2)-dx(2), xc(3)-dx(3));
     
    748756                 "   %10.5f INTERNAL",
    749757                 messageType, updateInt, _resTime.gpsw(), _resTime.gpssec(),
    750                  corr->_prn.toAscii().data(),
     758                 corr->_prn.mid(0,3).toAscii().data(),
    751759                 corr->_iod,
    752760                 corr->_dClkResult * t_CST::c,
     
    10521060    QString  prn  = corr->_prn;
    10531061
    1054     const t_eph* ephLast = _ephUser.ephLast(prn);
    1055     const t_eph* ephPrev = _ephUser.ephPrev(prn);
     1062    t_eph* ephLast = _ephUser.ephLast(prn);
     1063    t_eph* ephPrev = _ephUser.ephPrev(prn);
    10561064
    10571065    if      (ephLast == 0) {
Note: See TracChangeset for help on using the changeset viewer.