Changeset 3052 in ntrip


Ignore:
Timestamp:
Feb 25, 2011, 4:22:14 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncantex.cpp

    r3034 r3052  
    207207}
    208208
     209// Satellite Antenna Offset
     210////////////////////////////////////////////////////////////////////////////
     211t_irc bncAntex::offset(const QString& prn, ColumnVector& neu) {
     212  QMap<QString, t_antMap*>::const_iterator it = _maps.find(prn);
     213  if (it != _maps.end()) {
     214    t_antMap* map = it.value();
     215    neu[0] = map->frqMapL1->neu[0];
     216    neu[1] = map->frqMapL1->neu[1];
     217    neu[2] = map->frqMapL1->neu[2];
     218    return success;
     219  }
     220  else {
     221    return failure;
     222  }
     223}
     224
    209225// Phase Center Offset (Receiver Antenna and GPS only)
    210226////////////////////////////////////////////////////////////////////////////
  • trunk/BNC/bncantex.h

    r2938 r3052  
    3838  void print() const;
    3939  double pco(const QString& antName, double eleSat, bool& found);
     40  t_irc  offset(const QString& prn, ColumnVector& neu);
    4041
    4142 private:
  • 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    }
  • trunk/BNC/combination/bnccomb.h

    r3047 r3052  
    99class cmbCaster;
    1010class bnsSP3;
     11class bncAntex;
    1112
    1213class cmbParam {
     
    8990  bnsSP3*               _sp3;
    9091  bool                  _append;
     92  bncAntex*             _antex;
    9193};
    9294
Note: See TracChangeset for help on using the changeset viewer.