@@ -21,12 +21,11 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling)
2121
2222 __module__ = "pyobs_flipro"
2323
24- def __init__ (self , ** kwargs : Any ):
24+ def __init__ (self , setpoint : float , ** kwargs : Any ):
2525 """Initializes a new FliProCamera.
2626
2727 Args:
2828 setpoint: Cooling temperature setpoint.
29- keep_alive_ping: Interval in seconds to ping camera.
3029 """
3130 BaseCamera .__init__ (self , ** kwargs )
3231 from .fliprodriver import FliProDriver , DeviceInfo # type: ignore
@@ -35,6 +34,7 @@ def __init__(self, **kwargs: Any):
3534 self ._driver : Optional [FliProDriver ] = None
3635 self ._device : Optional [DeviceInfo ] = None
3736 self ._caps : Optional [DeviceCaps ] = None
37+ self ._temp_setpoint : Optional [float ] = setpoint
3838
3939 # window and binning
4040 self ._window = (0 , 0 , 0 , 0 )
@@ -62,6 +62,10 @@ async def open(self) -> None:
6262 # get caps
6363 self ._caps = self ._driver .get_capabilities ()
6464
65+ # set cooling
66+ if self ._temp_setpoint is not None :
67+ await self .set_cooling (True , self ._temp_setpoint )
68+
6569 # get window and binning
6670 self ._window = self ._driver .get_image_area ()
6771 self ._binning = self ._driver .get_binning ()
0 commit comments