fixes: real sky tested

This commit is contained in:
2024-10-11 21:48:45 +03:00
parent b7750ee029
commit ce817b64a1
3 changed files with 16 additions and 6 deletions

View File

@@ -125,6 +125,10 @@ def focussing_app(parser, init_seq_func, set_focus_func, get_image_func):
pt.with_stem(pt.stem + "_rough")
)
# rough estimation: be sure that only a single
# acquisition per focus value
seq_rough_kwds["acq_per_value"] = 1
result = obsutil.focussingSequence(
[focus_start, focus_stop],
init_seq_func,
@@ -141,7 +145,7 @@ def focussing_app(parser, init_seq_func, set_focus_func, get_image_func):
return result["ret_code"]
# compute precise range start and stop values
r = args.num * focus_step / 2.0
r = (args.num-1) * focus_step / 2.0
focus_start = result["focus_value"] - r
focus_stop = result["focus_value"] + r