Commit 739c70fb authored by Hy Murveit's avatar Hy Murveit
Browse files

Save Align accuracy. Add focus position to Analyze focus info box.

parent 8240afe3
Pipeline #52054 canceled with stage
......@@ -301,6 +301,11 @@ Align::Align(ProfileInfo *activeProfile) : m_ActiveProfile(activeProfile)
&Ekos::Align::updateTelescopeType);
accuracySpin->setValue(Options::solverAccuracyThreshold());
connect(accuracySpin, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), [this]()
{
Options::setSolverAccuracyThreshold(accuracySpin->value());
buildTarget();
});
alignDarkFrameCheck->setChecked(Options::alignDarkFrame());
delaySpin->setValue(Options::settlingTime());
......@@ -382,7 +387,6 @@ Align::Align(ProfileInfo *activeProfile) : m_ActiveProfile(activeProfile)
connect(alignPlot, &QCustomPlot::mouseMove, this, &Ekos::Align::handlePointTooltip);
connect(rightLayout, &QSplitter::splitterMoved, this, &Ekos::Align::handleVerticalPlotSizeChange);
connect(alignSplitter, &QSplitter::splitterMoved, this, &Ekos::Align::handleHorizontalPlotSizeChange);
connect(accuracySpin, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &Ekos::Align::buildTarget);
alignPlot->resize(190, 190);
alignPlot->replot();
......
......@@ -1022,11 +1022,17 @@ void Analyze::focusSessionClicked(FocusSession &c, bool doubleClick)
else
c.setupTable("Focus", "FAILED", clockTime(c.start), clockTime(c.end), detailsTable);
double finalHfr = c.hfrs.size() > 0 ? c.hfrs.last() : 0;
if (c.success)
c.addRow("HFR", c.isTemporary() ? "" : QString::number(finalHfr, 'f', 2));
if (!c.isTemporary())
{
if (c.success)
{
if (c.hfrs.size() > 0)
c.addRow("HFR", QString::number(c.hfrs.last(), 'f', 2));
if (c.positions.size() > 0)
c.addRow("Solution", QString::number(c.positions.last(), 'f', 0));
}
c.addRow("Iterations", QString::number(c.positions.size()));
}
c.addRow("Filter", c.filter);
c.addRow("Temperature", QString::number(c.temperature, 'f', 1));
......
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