def connect(self, name): logging.debug(f'Connecting to mount device: {name}') if self.mount is not None: logging.warning('Mount.connect() self.mount is not None!') mount = indihelper.connectDevice(self.backend.indiclient, name) #logging.debug(f'connectDevice returned {mount}') if mount is not None: self.name = name self.mount = mount return True return False
def connect(self, name): logging.debug(f'Connecting to filterwheel device: {name}') if self.filterwheel is not None: logging.warning('FilterWheel.connect() self.filterwheel is not None!') fw = indihelper.connectDevice(self.backend.indiclient, name) #logging.info(f'connectDevice returned {fw}') if fw is not None: self.name = name self.filterwheel = fw return True return False
def connect(self, name): logging.debug(f'Connecting to focuser device: {name}') if self.focuser is not None: logging.warning('Focuser.connect() self.focuser is not None!') focuser = indihelper.connectDevice(self.backend.indiclient, name) #logging.info(f'connectDevice returned {focuser}') if focuser is not None: self.name = name self.focuser = focuser # reset flag(s) self.focuser_has_max_travel = None self.focuser_has_temperature = None return True return False
def connect(self, name): logging.debug(f'Connecting to camera device: {name}') if self.cam is not None: logging.warning('Camera.connect() self.cam is not None!') cam = indihelper.connectDevice(self.backend.indiclient, name) #logging.info(f'connectDevice returned {cam}') if cam is not None: self.name = name self.cam = cam # reset some flags self.camera_has_progress = None self.camera_has_cooler_power = None self.temperature_target = None return True return False