Skip to content

Commit

Permalink
Merge pull request #969 from aaronwmorris/dev
Browse files Browse the repository at this point in the history
add support for additional libgphoto servers
  • Loading branch information
aaronwmorris authored Oct 2, 2023
2 parents e3fac2c + b44533f commit 36197c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions indi_allsky/camera/indi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def getCcdGain(self):
elif indi_exec in ['indi_sx_ccd']:
logger.warning('indi_sx_ccd does not support gain settings')
return fake_gain_info
elif indi_exec in ['indi_canon_ccd']:
elif indi_exec in ['indi_gphoto_ccd', 'indi_canon_ccd', 'indi_nikon_ccd', 'indi_pentax_ccd', 'indin_sony_ccd']:
gain_ctl = self.get_control(self._ccd_device, 'CCD_ISO', 'switch')

gain_max = int(gain_ctl[len(gain_ctl) - 1].getLabel()) # dont slice
Expand Down Expand Up @@ -1098,8 +1098,8 @@ def setCcdGain(self, gain_value):
},
},
}
elif indi_exec in ['indi_canon_ccd']:
logger.info('Mapping gain to ISO for Canon device')
elif indi_exec in ['indi_gphoto_ccd', 'indi_canon_ccd', 'indi_nikon_ccd', 'indi_pentax_ccd', 'indi_sony_ccd']:
logger.info('Mapping gain to ISO for libgphoto device')

try:
gain_switch = self.__canon_gain_to_iso[gain_value]
Expand Down Expand Up @@ -1178,8 +1178,8 @@ def setCcdBinning(self, bin_value):
},
},
}
elif indi_exec in ['indi_canon_ccd']:
logger.warning('indi_canon_ccd does not support bin settings')
elif indi_exec in ['indi_gphoto_ccd', 'indi_canon_ccd', 'indi_nikon_ccd', 'indi_pentax_ccd', 'indi_sony_ccd']:
logger.warning('indi_gphoto_ccd does not support bin settings')
return
elif indi_exec in ['indi_webcam_ccd']:
logger.warning('indi_webcam_ccd does not support bin settings')
Expand Down
8 changes: 4 additions & 4 deletions testing/exposureTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ def setCcdGain(self, ccdDevice, gain_value):
},
},
}
elif indi_exec in ['indi_canon_ccd']:
logger.info('Mapping gain to ISO for Canon device')
elif indi_exec in ['indi_gphoto_ccd', 'indi_canon_ccd', 'indi_nikon_ccd', 'indi_pentax_ccd', 'indi_sony_ccd']:
logger.info('Mapping gain to ISO for libgphoto device')

try:
gain_switch = self.__canon_iso_switch[gain_value]
Expand Down Expand Up @@ -388,8 +388,8 @@ def setCcdBinning(self, ccdDevice, bin_value):
},
},
}
elif indi_exec in ['indi_canon_ccd']:
logger.warning('indi_canon_ccd does not support bin settings')
elif indi_exec in ['indi_gphoto_ccd', 'indi_canon_ccd', 'indi_nikon_ccd', 'indi_pentax_ccd', 'indi_sony_ccd']:
logger.warning('indi_gphoto_ccd does not support bin settings')
return
elif indi_exec in ['indi_webcam_ccd']:
logger.warning('indi_webcam_ccd does not support bin settings')
Expand Down

0 comments on commit 36197c2

Please sign in to comment.