diff --git a/pyobs/modules/pointing/autoguiding.py b/pyobs/modules/pointing/autoguiding.py index d52694b1..f67e15a8 100644 --- a/pyobs/modules/pointing/autoguiding.py +++ b/pyobs/modules/pointing/autoguiding.py @@ -2,6 +2,7 @@ import logging from typing import Any, Optional +from pyobs.mixins import CameraSettingsMixin from pyobs.modules.pointing._baseguiding import BaseGuiding from pyobs.images.meta.exptime import ExpTime from pyobs.images.processors.detection import SepSourceDetection @@ -12,7 +13,7 @@ log = logging.getLogger(__name__) -class AutoGuiding(BaseGuiding): +class AutoGuiding(BaseGuiding, CameraSettingsMixin): """An auto-guiding system.""" __module__ = "pyobs.modules.guiding" @@ -32,6 +33,9 @@ def __init__(self, exposure_time: float = 1.0, broadcast: bool = False, **kwargs self._broadcast = broadcast self._source_detection = SepSourceDetection() + # init camera settings mixin + CameraSettingsMixin.__init__(self, **kwargs) + # add thread func self.add_background_task(self._auto_guiding) @@ -81,6 +85,9 @@ async def _auto_guiding(self) -> None: # get camera camera = await self.proxy(self._camera, IData) + # do camera settings + await self._do_camera_settings(camera) + # take image if isinstance(camera, IExposureTime): # set exposure time diff --git a/pyproject.toml b/pyproject.toml index 24c3e0ae..ced8aaa0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "pyobs-core" packages = [{ include = "pyobs" }] -version = "1.6.12" +version = "1.6.13" description = "robotic telescope software" authors = ["Tim-Oliver Husser "] license = "MIT"