Skip to content

Commit

Permalink
zwo bandwidthoverload arg
Browse files Browse the repository at this point in the history
  • Loading branch information
danjampro committed Jan 27, 2021
1 parent cb4d26e commit 08b330c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/panoptes/pocs/camera/zwo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self,
name='ZWO ASI Camera',
gain=None,
image_type=None,
bandwidthoverload=None,
*args, **kwargs):
"""
ZWO ASI Camera class
Expand Down Expand Up @@ -57,6 +58,9 @@ def __init__(self,
if gain:
self.gain = gain

if bandwidthoverload is not None:
self.bandwidthoverload = bandwidthoverload

if image_type:
self.image_type = image_type
else:
Expand Down Expand Up @@ -143,6 +147,15 @@ def is_exposing(self):
""" True if an exposure is currently under way, otherwise False """
return Camera._driver.get_exposure_status(self._handle) == "WORKING"

@property
def bandwidthoverload(self):
return self._control_getter('BANDWIDTHOVERLOAD')[0]

@bandwidthoverload.setter
def bandwidthoverload(self, value):
value = get_quantity_value(value, u.percent) * u.percent
self._control_setter('BANDWIDTHOVERLOAD', value)

# Methods

def connect(self):
Expand Down

0 comments on commit 08b330c

Please sign in to comment.