Index: /trunk/BNC/combination/bnccomb.cpp
===================================================================
--- /trunk/BNC/combination/bnccomb.cpp	(revision 3046)
+++ /trunk/BNC/combination/bnccomb.cpp	(revision 3047)
@@ -174,15 +174,17 @@
   // SP3 writer
   // ----------
-  if ( settings.value("sp3Path").toString().isEmpty() ) { 
+  if ( settings.value("cmbSP3Path").toString().isEmpty() ) { 
     _sp3 = 0;
   }
   else {
-    QString prep  = "BNS";
-    QString ext   = ".sp3";
-    QString path  = settings.value("sp3Path").toString();
-    QString intr  = settings.value("sp3Intr").toString();
-    int     sampl = settings.value("sp3Sampl").toInt();
-    _sp3 = new bnsSP3(prep, ext, path, intr, sampl);
-  }
+    QString prep      = "BNC";
+    QString ext       = ".sp3";
+    QString path      = settings.value("cmbSP3Path").toString();
+    QString interval  = "";
+    int     sampl     = 0;
+    _sp3 = new bnsSP3(prep, ext, path, interval, sampl);
+  }
+
+  _append = Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked;
 }
 
@@ -356,4 +358,11 @@
     }
     
+    // SP3 Output
+    // ----------
+    if (_sp3) {
+      ColumnVector xx(4); xx = 0.0;
+      _sp3->write(resTime.gpsw(), resTime.gpssec(), corr->prn, xx, _append);
+    }
+
     delete corr;
   }
@@ -393,8 +402,4 @@
     }
   }
-
-  //if (_sp3) {
-  //  _sp3->write(GPSweek, GPSweeks, prn, xx, _append);
-  //}
 }
 
Index: /trunk/BNC/combination/bnccomb.h
===================================================================
--- /trunk/BNC/combination/bnccomb.h	(revision 3046)
+++ /trunk/BNC/combination/bnccomb.h	(revision 3047)
@@ -88,4 +88,5 @@
   std::ofstream*        _out;
   bnsSP3*               _sp3;
+  bool                  _append;
 };
 
