Guiding settling after dithering
After Guide applies dithering, it waits for Options::ditherSettle
(guide.cpp:3328).
When Capture is notified of the end of dithering, it also waits, for Options::guidingSettle
, both in case of success and error (capture.cpp:5320
).
case GUIDE_DITHERING_SUCCESS:
qCInfo(KSTARS_EKOS_CAPTURE) << "Dithering succeeded, capture state" << getCaptureStatusString(m_State);
(...)
if (Options::guidingSettle() > 0)
{
(...)
QTimer::singleShot(Options::guidingSettle() * 1000, this, [this]()
{
ditheringState = IPS_OK;
});
}
case GUIDE_DITHERING_ERROR:
qCInfo(KSTARS_EKOS_CAPTURE) << "Dithering failed, capture state" << getCaptureStatusString(m_State);
(...)
if (Options::guidingSettle() > 0)
{
(....)
QTimer::singleShot(Options::guidingSettle() * 1000, this, [this]()
{
ditheringState = IPS_OK;
});
While waiting in case of error is acceptable, a successful dithering procedure should probably incur no delay because guiding actually never stopped. Any reason the feature is implemented like this?