summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-22 20:17:43 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-22 20:17:43 (GMT)
commit2632b0c81d2db12cd85f3ee8864e831bab082ef1 (patch)
tree2a866644f34f3046242c9b3ed51f53585877d0b7
parent33c5e8a29addd53d558890fec981e5049eef94cb (diff)
Enable guide log file
-rw-r--r--kstars/ekos/guide/internalguide/internalguider.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/kstars/ekos/guide/internalguide/internalguider.cpp b/kstars/ekos/guide/internalguide/internalguider.cpp
index 0f1ceb3..677b1cd 100644
--- a/kstars/ekos/guide/internalguide/internalguider.cpp
+++ b/kstars/ekos/guide/internalguide/internalguider.cpp
@@ -12,6 +12,8 @@
#include <KMessageBox>
#include <KNotification>
+#include "auxiliary/kspaths.h"
+
#include "internalguider.h"
#include "gmath.h"
@@ -63,6 +65,8 @@ bool InternalGuider::guide()
guideFrame->disconnect(this);
+ QString logFileName = KSPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/guide_log.txt";
+ logFile.setFileName(logFileName);
logFile.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&logFile);
@@ -72,9 +76,10 @@ bool InternalGuider::guide()
out << "F/D: " << mountFocalLength/mountAperture << endl;
out << "Frame #, Time Elapsed (ms), RA Error (arcsec), RA Correction (ms), RA Correction Direction, DEC Error (arcsec), DEC Correction (ms), DEC Correction Direction" << endl;
- pmath->start();
pmath->setLogFile(&logFile);
+ pmath->start();
+
m_lostStarTries=0;
// TODO re-enable rapid check later on