Changeset 5779 in ntrip for trunk/BNC/src/PPP


Ignore:
Timestamp:
Aug 4, 2014, 1:46:47 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.cpp

    r5778 r5779  
    128128//
    129129//////////////////////////////////////////////////////////////////////////////
    130 void t_pppClient::putOrbCorrections(const vector<t_orbCorr>& corr) {
     130void t_pppClient::putOrbCorrections(const vector<t_orbCorr*>& corr) {
    131131  for (unsigned ii = 0; ii < corr.size(); ii++) {
    132     _ephPool->putOrbCorrection(new t_orbCorr(corr[ii]));
     132    _ephPool->putOrbCorrection(new t_orbCorr(*corr[ii]));
    133133  }
    134134  LOG << OPT->_roverName <<  " putOrbCorrections " << corr.size() << endl;
     
    137137//
    138138//////////////////////////////////////////////////////////////////////////////
    139 void t_pppClient::putClkCorrections(const vector<t_clkCorr>& corr) {
     139void t_pppClient::putClkCorrections(const vector<t_clkCorr*>& corr) {
    140140  for (unsigned ii = 0; ii < corr.size(); ii++) {
    141     _ephPool->putClkCorrection(new t_clkCorr(corr[ii]));
     141    _ephPool->putClkCorrection(new t_clkCorr(*corr[ii]));
    142142  }
    143143  LOG << OPT->_roverName <<  " putClkCorrections " << corr.size() << endl;
     
    146146//
    147147//////////////////////////////////////////////////////////////////////////////
    148 void t_pppClient::putBiases(const vector<t_satBiases>& biases) {
     148void t_pppClient::putBiases(const vector<t_satBiases*>& biases) {
    149149  for (unsigned ii = 0; ii < biases.size(); ii++) {
    150     _obsPool->putBiases(new t_satBias(biases[ii]));
     150    _obsPool->putBiases(new t_satBias(*biases[ii]));
    151151  }
    152152  LOG << OPT->_roverName <<  " putBiases " << biases.size() << endl;
  • trunk/BNC/src/PPP/pppClient.h

    r5778 r5779  
    2424
    2525  void putEphemeris(const t_eph* eph);                 
    26   void putOrbCorrections(const std::vector<t_orbCorr>& corr);
    27   void putClkCorrections(const std::vector<t_clkCorr>& corr);
    28   void putBiases(const std::vector<t_satBiases>& biases);   
     26  void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
     27  void putClkCorrections(const std::vector<t_clkCorr*>& corr);
     28  void putBiases(const std::vector<t_satBiases*>& biases);   
    2929  void processEpoch(const std::vector<t_pppSatObs*>& pppSatObs, t_output* output);
    3030
  • trunk/BNC/src/PPP/pppThread.cpp

    r5778 r5779  
    154154  }
    155155
    156   // _pppClient->putOrbCorrections(const std::vector<t_orbCorr>& corr);
    157   // _pppClient->putClkCorrections(const std::vector<t_clkCorr>& corr);
    158   // _pppClient->putBiases(const std::vector<t_satBiases>& biases);   
     156  // _pppClient->putOrbCorrections(const std::vector<t_orbCorr*>& corr);
     157  // _pppClient->putClkCorrections(const std::vector<t_clkCorr*>& corr);
     158  // _pppClient->putBiases(const std::vector<t_satBiases*>& biases);   
    159159}
    160160//
     
    176176  _pppClient->processEpoch(satObs, &output);
    177177
     178  for (unsigned ii = 0; ii < satObs.size(); ii++) {
     179    delete satObs[ii];
     180  }
     181  satObs.clear();
     182
    178183  emit newMessage(QByteArray(output._log.c_str()), true);
    179184}
Note: See TracChangeset for help on using the changeset viewer.