Index: trunk/BNC/combination/bnccomb.cpp
===================================================================
--- trunk/BNC/combination/bnccomb.cpp	(revision 3051)
+++ trunk/BNC/combination/bnccomb.cpp	(revision 3052)
@@ -26,4 +26,5 @@
 #include "bncpppclient.h"
 #include "bnssp3.h"
+#include "bncantex.h"
 
 using namespace std;
@@ -187,4 +188,17 @@
 
   _append = Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked;
+
+  // ANTEX File
+  // ----------
+  _antex = 0;
+  QString antexFileName = settings.value("pppAntex").toString();
+  if (!antexFileName.isEmpty()) {
+    _antex = new bncAntex();
+    if (_antex->readFile(antexFileName) != success) {
+      emit newMessage("wrong ANTEX file", true);
+      delete _antex;
+      _antex = 0;
+    }
+  }
 }
 
@@ -200,4 +214,5 @@
   delete _out;
   delete _sp3;
+  delete _antex;
 }
 
@@ -367,4 +382,13 @@
       bncPPPclient::applyCorr(resTime, corr, xc, vv);
       xc(4) += 2.0 * DotProduct(xc.Rows(1,3),vv) / t_CST::c / t_CST::c;
+      if (_antex) {
+        ColumnVector neu(3);
+        if (_antex->offset(corr->prn, neu) == success) {
+          cout << neu.t();
+        }
+        else {
+          cout << "antenna not found" << endl;
+        }
+      }
       _sp3->write(resTime.gpsw(), resTime.gpssec(), corr->prn, xc, _append);
     }
Index: trunk/BNC/combination/bnccomb.h
===================================================================
--- trunk/BNC/combination/bnccomb.h	(revision 3051)
+++ trunk/BNC/combination/bnccomb.h	(revision 3052)
@@ -9,4 +9,5 @@
 class cmbCaster;
 class bnsSP3;
+class bncAntex;
 
 class cmbParam {
@@ -89,4 +90,5 @@
   bnsSP3*               _sp3;
   bool                  _append;
+  bncAntex*             _antex;
 };
 
