Commit 3c9b48e9 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Do not find stars on framing

parent 60f6852d
......@@ -884,44 +884,49 @@ void Focus::newFITS(IBLOB *bp)
disconnect(currentCCD, SIGNAL(BLOBUpdated(IBLOB*)), this, SLOT(newFITS(IBLOB*)));
image_data->findStars();
// If we're not framing, let's try to detect stars
if (inFocusLoop == false)
{
image_data->findStars();
currentHFR= image_data->getHFR(HFR_MAX);
currentHFR= image_data->getHFR(HFR_MAX);
if (currentHFR == -1)
{
currentHFR = image_data->getHFR();
}
if (currentHFR == -1)
{
currentHFR = image_data->getHFR();
}
if (Options::focusLogging())
qDebug() << "Focus newFITS: Current HFR " << currentHFR;
if (Options::focusLogging())
qDebug() << "Focus newFITS: Current HFR " << currentHFR;
HFRText = QString("%1").arg(currentHFR, 0,'g', 3);
HFRText = QString("%1").arg(currentHFR, 0,'g', 3);
if (inFocusLoop == false && focusType == FOCUS_MANUAL && lastHFR == -1)
appendLogText(i18n("FITS received. No stars detected."));
if (focusType == FOCUS_MANUAL && lastHFR == -1)
appendLogText(i18n("FITS received. No stars detected."));
HFROut->setText(HFRText);
HFROut->setText(HFRText);
if (currentHFR > 0)
{
if (currentHFR > maxHFR)
maxHFR = currentHFR;
if (currentHFR > 0)
{
if (currentHFR > maxHFR)
maxHFR = currentHFR;
if (hfr_position.empty())
hfr_position.append(1);
else
hfr_position.append(hfr_position.last()+1);
hfr_value.append(currentHFR);
if (hfr_position.empty())
hfr_position.append(1);
else
hfr_position.append(hfr_position.last()+1);
hfr_value.append(currentHFR);
if (focusType == FOCUS_MANUAL || (inAutoFocus && canAbsMove == false && canRelMove == false))
drawHFRPlot();
if (focusType == FOCUS_MANUAL || (inAutoFocus && canAbsMove == false && canRelMove == false))
drawHFRPlot();
}
}
if (inFocusLoop)
// If just framing, let's capture again
else
{
capture();
return;
}
if (starSelected == false)
......
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