The source project of this merge request has been removed.
If focus motion command times out in 30 seconds, command it again. If after 3...
If focus motion command times out in 30 seconds, command it again. If after 3 times it keeps timing out then we abort.
A user reported that when using the scheduler, focus stopped because apparently there was no response for whatever reason from the driver. The command was sent 00:10 and only at 02:40 that focus finally stopped! So what was it doing in these 2:30 hours?
[2021-06-06T00:10:33.007 EDT DEBG ][ org.kde.kstars.ekos.focus] - Focus is moving away from optimal HFR.
[2021-06-06T00:10:33.007 EDT DEBG ][ org.kde.kstars.ekos.focus] - Setting focus IN limit to 15442
[2021-06-06T00:10:33.008 EDT DEBG ][ org.kde.kstars.ekos.focus] - Setting focus OUT limit to 15579
[2021-06-06T00:10:33.008 EDT DEBG ][ org.kde.kstars.ekos.focus] - new targetPosition 15555
[2021-06-06T00:10:33.008 EDT DEBG ][ org.kde.kstars.ekos.focus] - delta (targetPosition - currentPosition) 113
[2021-06-06T00:10:33.008 EDT DEBG ][ org.kde.kstars.ekos.focus] - Limited delta to maximum permitted single step 100
[2021-06-06T00:10:33.008 EDT DEBG ][ org.kde.kstars.ekos.focus] - Focus "outward" ( 100 )
[2021-06-06T00:10:33.009 EDT INFO ][ org.kde.kstars.ekos.focus] - "Focusing outward by 100 steps..."
[2021-06-06T00:10:33.555 EDT INFO ][ org.kde.kstars.indi] - ASI EAF : "[INFO] Focuser is moving to position 15542 "
[2021-06-06T00:10:33.556 EDT INFO ][ org.kde.kstars.indi] - ASI EAF : "[INFO] Focuser reached requested position. "
[2021-06-06T02:41:00.898 EDT DEBG ][ org.kde.kstars.ekos.focus] - Stopping Focus
[2021-06-06T02:41:00.899 EDT DEBG ][ org.kde.kstars.ekos.focus] - State: "Aborted"
[2021-06-06T02:41:00.909 EDT INFO ][ org.kde.kstars.ekos.focus] - "Autofocus aborted."
[2021-06-06T02:41:00.913 EDT INFO ][ org.kde.kstars.ekos.scheduler] - "Warning: job 'M 16' focusing failed."
[2021-06-06T02:41:00.914 EDT INFO ][ org.kde.kstars.ekos.scheduler] - "Job 'M 16' is restarting its focusing procedure."
[2021-06-06T02:41:00.916 EDT INFO ][ org.kde.kstars.ekos.scheduler] - "Job 'M 16' is focusing."
[2021-06-06T02:41:00.921 EDT DEBG ][ org.kde.kstars.ekos.focus] - Settled. State: "Failed"
I think the scheduler should have aborted and restarted the process. Why didn't this happen? @wreissenberger & @edejouhanet any ideas?
At any rate, now the focus module itself times out and retries to focus to the same position again. If it fails after a couple of tries then it aborts the whole process.