Changeset 3015 in ntrip


Ignore:
Timestamp:
Feb 22, 2011, 7:51:10 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

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

    r3014 r3015  
    478478  }
    479479
    480   printResults(out, resCorr);
     480  printResults(out, resTime, resCorr);
    481481  dumpResults(resTime, resCorr);
    482482
     
    486486// Print results to caster
    487487////////////////////////////////////////////////////////////////////////////
    488 void bncComb::printResults(QTextStream& out,
     488void bncComb::printResults(QTextStream& out, const bncTime& resTime,
    489489                           const QMap<QString, t_corr*>& resCorr) {
    490490
     
    493493    it.next();
    494494    t_corr* corr = it.value();
    495     out << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
    496     out.setFieldWidth(3);
    497     out << "Full Clock " << corr->prn << " " << corr->iod << " ";
    498     out.setFieldWidth(8);
    499     out << corr->dClk * t_CST::c << endl;
    500   }
    501 }
     495    t_eph* eph = corr->eph;
     496    if (eph) {
     497      double xx, yy, zz, cc;
     498      eph->position(resTime.gpsw(), resTime.gpssec(), xx, yy, zz, cc);
     499
     500      out << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
     501      out.setFieldWidth(3);
     502      out << "Full Clock " << corr->prn << " " << corr->iod << " ";
     503      out.setFieldWidth(14);
     504      out << (cc + corr->dClk) * t_CST::c << endl;
     505    }
     506    else {
     507      out << "bncComb::printResuls bug" << endl;
     508    }
     509  }
     510}
  • trunk/BNC/combination/bnccomb.h

    r3011 r3015  
    6969  void dumpResults(const bncTime& resTime,
    7070                   const QMap<QString, t_corr*>& resCorr);
    71   void printResults(QTextStream& out,
     71  void printResults(QTextStream& out, const bncTime& resTime,
    7272                    const QMap<QString, t_corr*>& resCorr);
    7373  void switchToLastEph(const t_eph* lastEph, const t_eph* prevEph,
Note: See TracChangeset for help on using the changeset viewer.