PolishookDavid / LAST_OCS

Code controling the LAST project Observatory
0 stars 0 forks source link

`unit.takeExposure` doesn't turn off `camera.SaveToDisk` for short exposures in live mode #5

Open EastEriq opened 1 year ago

EastEriq commented 1 year ago

The code is designed to do it for ExpTime<5sec (because saving to disk takes time and bad things can happen), but it doesn't succeed in doing it. I suspect that this happens because deep inside (in QHYccd) the images are imported by the timer-callback collectLiveExposure(). When that is launched as a callback, it copies an instance of the class which contains SaveToDisk=true, even if takeExposure() set it to false. Speculation. See comment in https://github.com/PolishookDavid/LAST_OCS/blob/12f8997f1952383c7d800fea262fa906b5b679e0/%2Bobs/%40unitCS/takeExposure.m#L88

EastEriq commented 1 year ago

Actually, duplicate of #3