Ignore:
Timestamp:
Sep 7, 2014, 7:18:16 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6088 r6093  
    4444
    4545#include "pppClient.h"
     46#include "pppFilter.h"
    4647#include "pppOptions.h"
    4748#include "bncutils.h"
    4849#include "bncconst.h"
    49 #include "bncmodel.h"
    5050
    5151using namespace BNC_PPP;
     
    6666t_pppClient::t_pppClient(const t_pppOptions* opt) : bncEphUser(false) {
    6767
    68   _opt       = new t_pppOptions(*opt);
    69   _model     = new bncModel(this);
    70   _epoData   = new t_epoData();
    71   _log       = new ostringstream();
    72   _staID     = QByteArray(_opt->_roverName.c_str());
     68  _opt     = new t_pppOptions(*opt);
     69  _filter  = new t_pppFilter(this);
     70  _epoData = new t_epoData();
     71  _log     = new ostringstream();
     72  _staID   = QByteArray(_opt->_roverName.c_str());
    7373
    7474  CLIENTS.setLocalData(this);  // CLIENTS takes ownership over "this"
     
    7878////////////////////////////////////////////////////////////////////////////
    7979t_pppClient::~t_pppClient() {
    80   delete _model;
     80  delete _filter;
    8181  delete _epoData;
    8282  delete _opt;
     
    147147  // Filter Solution
    148148  // ---------------
    149   if (_model->update(_epoData) == success) {
     149  if (_filter->update(_epoData) == success) {
    150150    output->_error = false;
    151     output->_epoTime     = _model->time();
    152     output->_xyzRover[0] = _model->x();
    153     output->_xyzRover[1] = _model->y();
    154     output->_xyzRover[2] = _model->z();
     151    output->_epoTime     = _filter->time();
     152    output->_xyzRover[0] = _filter->x();
     153    output->_xyzRover[1] = _filter->y();
     154    output->_xyzRover[2] = _filter->z();
    155155    output->_numSat      = 0;
    156156    output->_pDop        = 0.0;
Note: See TracChangeset for help on using the changeset viewer.