Commit 45777dfd authored by Andy Galasso's avatar Andy Galasso Committed by Jasem Mutlaq
Browse files

The PHD2 external guider was not honoring the Lost Star timeout setting, it...

The PHD2 external guider was not honoring the Lost Star timeout setting, it was using a hard-coded value of 5 seconds which is much too aggressive.
parent a6b9780d
......@@ -113,7 +113,11 @@ PHD2::PHD2()
writableDir.mkdir(KSPaths::writableLocation(QStandardPaths::TempLocation));
abortTimer = new QTimer(this);
connect(abortTimer, &QTimer::timeout, this, [=]{abort();});
connect(abortTimer, &QTimer::timeout, this, [=]
{
qCDebug(KSTARS_EKOS_GUIDE) << "Lost Star timeout expired";
abort();
});
ditherTimer = new QTimer(this);
connect(ditherTimer, &QTimer::timeout, this, [=]
......@@ -379,7 +383,7 @@ void PHD2::processPHD2Event(const QJsonObject &jsonEvent, const QByteArray &line
if (state != LOSTLOCK)
{
state = LOSTLOCK;
abortTimer->start(starReAcquisitionTime);
abortTimer->start(Options::guideLostStarTimeout() * 1000);
}
break;
......
......@@ -240,7 +240,6 @@ class PHD2 : public GuideInterface
QTimer *abortTimer;
QTimer *ditherTimer;
int starReAcquisitionTime=5000;
double pixelScale=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment