Skip to content

Commit

Permalink
Adding CameraSettings to AutoGuiding
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Dec 11, 2023
1 parent ba738c6 commit 7f50614
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyobs/modules/pointing/autoguiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -12,7 +13,7 @@
log = logging.getLogger(__name__)


class AutoGuiding(BaseGuiding):
class AutoGuiding(BaseGuiding, CameraSettingsMixin):
"""An auto-guiding system."""

__module__ = "pyobs.modules.guiding"
Expand All @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f50614

Please sign in to comment.