Index: trunk/BNS/bns.cpp
===================================================================
--- trunk/BNS/bns.cpp	(revision 1697)
+++ trunk/BNS/bns.cpp	(revision 1698)
@@ -75,11 +75,8 @@
   // -------------------------------------------
   for (int ic = 1; ic <= 2; ic++) {
-
     QString mountpoint  = settings.value(QString("mountpoint_%1").arg(ic)).toString();
     QString outFileName = settings.value(QString("outFile_%1").arg(ic)).toString();
     if (!mountpoint.isEmpty() || !outFileName.isEmpty()) {
-      QString refSys      = settings.value(QString("refSys_%1").arg(ic)).toString();
-
-      _caster.push_back(new t_bnscaster(mountpoint, outFileName, refSys, ic));
+      _caster.push_back(new t_bnscaster(mountpoint, outFileName, ic));
       connect(_caster.back(), SIGNAL(error(const QByteArray)),
               this, SLOT(slotError(const QByteArray)));
@@ -373,5 +370,5 @@
             prns << prn;
             if ( _ephList.contains(prn) ) {
-              in >> xx(1) >> xx(2) >> xx(3) >> xx(4);
+              in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5);
               xx(1) *= 1e3;
               xx(2) *= 1e3;
@@ -379,17 +376,9 @@
               xx(4) *= 1e-6;
 
-    //// in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5); xx(4) *= 1e-6;
-    ////
-    //// beg test (zero clock correction for Gerhard Wuebbena)
-    ////            xx(4) -= xx(5) / 299792458.0;
-    //// end test
-    ////
-    //// Falls Clocks aus den Broadcast Ephemeris gewuenscht:
-    //// (2nd order relativistic effect taken out for
-    //// compatibility with IGS products?)
-    ////
-    //// if ( Qt::CheckState(settings.value("beClocks1 oder beClocks2").toInt()) == Qt::Checked) {
-    ////  .....
-    //// }
+              // Clocks without corrections 
+              // --------------------------
+              if ( _caster.at(ic)->beClocks() ) {
+                xx(4) -= xx(5) / 299792458.0;
+              } 
       
               t_ephPair* pair = _ephList[prn];
Index: trunk/BNS/bnscaster.cpp
===================================================================
--- trunk/BNS/bnscaster.cpp	(revision 1697)
+++ trunk/BNS/bnscaster.cpp	(revision 1698)
@@ -24,20 +24,12 @@
 ////////////////////////////////////////////////////////////////////////////
 t_bnscaster::t_bnscaster(const QString& mountpoint, const QString& outFileName,
-                         const QString& refSys, const int ic) {
-
-  _mountpoint         = mountpoint;
-  _outSocket          = 0;
-  _outSocketOpenTrial = 0;
-  _ic = ic;
+                         int ic) {
 
   bnsSettings settings;
 
-  QIODevice::OpenMode oMode;
-  if (Qt::CheckState(settings.value("fileAppend").toInt()) == Qt::Checked) {
-    oMode = QIODevice::WriteOnly | QIODevice::Unbuffered | QIODevice::Append;
-  }
-  else {
-    oMode = QIODevice::WriteOnly | QIODevice::Unbuffered;
-  }
+  _mountpoint = mountpoint;
+  _ic         = ic;
+  _outSocket  = 0;
+  _sOpenTrial = 0;
 
   if (outFileName.isEmpty()) {
@@ -47,4 +39,13 @@
   else {
     _outFile = new QFile(outFileName);
+
+    QIODevice::OpenMode oMode;
+    if (Qt::CheckState(settings.value("fileAppend").toInt()) == Qt::Checked) {
+      oMode = QIODevice::WriteOnly | QIODevice::Unbuffered | QIODevice::Append;
+    }
+    else {
+      oMode = QIODevice::WriteOnly | QIODevice::Unbuffered;
+    }
+
     if (_outFile->open(oMode)) {
       _outStream = new QTextStream(_outFile);
@@ -54,7 +55,17 @@
   // Reference frame
   // ---------------
-  _crdTrafo = false;
-  if (refSys == "ETRF2000") {
+  if (settings.value(QString("refSys_%1").arg(_ic)).toString() == "ETRF2000") {
     _crdTrafo = true;
+  }
+  else {
+    _crdTrafo = false;
+  }
+
+  if ( Qt::CheckState(settings.value(QString("beClocks%1").arg(_ic)).toInt()) 
+       == Qt::Checked ) {
+    _beClocks = true;
+  }
+  else {
+    _beClocks = false;
   }
 }
@@ -83,7 +94,7 @@
   delete _outSocket; _outSocket = 0;
 
-  double minDt = pow(2.0,_outSocketOpenTrial);
-  if (++_outSocketOpenTrial > 8) {
-    _outSocketOpenTrial = 8;
+  double minDt = pow(2.0,_sOpenTrial);
+  if (++_sOpenTrial > 8) {
+    _sOpenTrial = 8;
   }
   if (_outSocketOpenTime.isValid() &&
@@ -130,11 +141,9 @@
     delete _outSocket;
     _outSocket = 0;
-//  emit(newMessage("t_bnscaster::open  socket deleted"));
-    emit(newMessage("Broadcaster: Connection broken")); // weber
+    emit(newMessage("Broadcaster: Connection broken"));
   }
   else {
-//  emit(newMessage("t_bnscaster::open  socket OK"));
-    emit(newMessage("Broadcaster: Connection opened")); // weber
-    _outSocketOpenTrial = 0;
+    emit(newMessage("Broadcaster: Connection opened"));
+    _sOpenTrial = 0;
   }
 }
Index: trunk/BNS/bnscaster.h
===================================================================
--- trunk/BNS/bnscaster.h	(revision 1697)
+++ trunk/BNS/bnscaster.h	(revision 1698)
@@ -7,6 +7,5 @@
  Q_OBJECT
  public:
-  t_bnscaster(const QString& mountpoint, const QString& outFileName, 
-              const QString& refSys, int ic);
+  t_bnscaster(const QString& mountpoint, const QString& outFileName, int ic);
   virtual ~t_bnscaster();
   void open();
@@ -15,4 +14,5 @@
   bool usedSocket() const {return _outSocket;}
   bool crdTrafo() const {return _crdTrafo;}
+  bool beClocks() const {return _beClocks;}
   int  ic() const {return _ic;}
 
@@ -24,9 +24,10 @@
   QString      _mountpoint;
   QTcpSocket*  _outSocket;
-  int          _outSocketOpenTrial;
+  int          _sOpenTrial;
   QDateTime    _outSocketOpenTime;
   QFile*       _outFile;
   QTextStream* _outStream;
   bool         _crdTrafo;
+  bool         _beClocks;
   int          _ic;
 };
