In the Capture module there is an option to re-focus every x minutes. The check whether the selected time has expired, takes place after an image has been taken and there is anotherone in the same sequence. Sequences, that contain only single frames (like a single LRGB sequence) result in the situation, that re-focussing is never started.
To cover such sequences, it is necessary to check before an imaging sequence is started, whether a re-focus is necessary.
Details
Create a capture sequence with a single frame and embed it into a schedule that repeatedly starts it. Select the re-focus option and set the frequency to 1. Without this patch, re-focusing will never be issued. With this patch, re-focusing takes place as expected.
Diff Detail
- Branch
- always_check_refocus
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 14233 Build 14251: arc lint + arc unit
I agree but did not test. I was wondering what the calibration stage was referring to? Is it the same as the calibration for flats?
That's a good point. The calibration stage is for dark/flat/bias pre-capture steps (like parking, going to a wall location, or putting on cap..etc) so maybe this step ought to be elsewhere? so that the two paths are not intermixed?
Sorry, the description is misleading, the focus check is added to startNextExposure(). This is exactly the same place where I added the meridian flip check, where we had the same problem.
The calibration itself is untouched.
kstars/ekos/capture/capture.h | ||
---|---|---|
110 ↗ | (On Diff #61695) | This enum is for bias/dark/flat pre-capture steps required, so focusing does not belong here. |
Re-focusing before capturing reworked, focusing states removed from calibration stages