Changeset 3052 in ntrip for trunk/BNC/combination/bnccomb.cpp


Ignore:
Timestamp:
Feb 25, 2011, 4:22:14 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3051 r3052  
    2626#include "bncpppclient.h"
    2727#include "bnssp3.h"
     28#include "bncantex.h"
    2829
    2930using namespace std;
     
    187188
    188189  _append = Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked;
     190
     191  // ANTEX File
     192  // ----------
     193  _antex = 0;
     194  QString antexFileName = settings.value("pppAntex").toString();
     195  if (!antexFileName.isEmpty()) {
     196    _antex = new bncAntex();
     197    if (_antex->readFile(antexFileName) != success) {
     198      emit newMessage("wrong ANTEX file", true);
     199      delete _antex;
     200      _antex = 0;
     201    }
     202  }
    189203}
    190204
     
    200214  delete _out;
    201215  delete _sp3;
     216  delete _antex;
    202217}
    203218
     
    367382      bncPPPclient::applyCorr(resTime, corr, xc, vv);
    368383      xc(4) += 2.0 * DotProduct(xc.Rows(1,3),vv) / t_CST::c / t_CST::c;
     384      if (_antex) {
     385        ColumnVector neu(3);
     386        if (_antex->offset(corr->prn, neu) == success) {
     387          cout << neu.t();
     388        }
     389        else {
     390          cout << "antenna not found" << endl;
     391        }
     392      }
    369393      _sp3->write(resTime.gpsw(), resTime.gpssec(), corr->prn, xc, _append);
    370394    }
Note: See TracChangeset for help on using the changeset viewer.