worlickwerx / sbig-util

Linux utility for Santa Barbara Instrument Group cameras for astronomy
GNU General Public License v3.0
5 stars 2 forks source link

sbig_ccd_get_exposure_status() polls wrong command value #27

Closed garlick closed 6 years ago

garlick commented 6 years ago

While debugging an ST-i camera that seems to time out in the first readout_line() call in sbig_ccd_readout(), I wondered if sbig_ccd_get_exposure_status() was really working, and perhaps we were trying to read out before the exposure was done.

I did not find a problem with the way the code worked (it progressed from busy to not busy when polled before the readout) but did note that it is polling for completion of the CE_START_EXPOSURE command, but we use CE_START_EXPOSURE2 to start the exposure, per guidance from the manual.

Both appear to work the same, but the latter would be more correct.