An exposure cycle is usually following this flow:
- a client request the camera to expose for X seconds
- the driver call into the library function to do the exposure
- when done, the client gets the BLOB with the exposure data
right now, to have a semi-functional driver that can be tested the driver converts binary data into FITS and dumps the picture to the disk.
The exposure cycle should be refactored such that:
- clients request an exposure
- the driver prepare the properties to signal an exposure is ongoing
- when the exposure is done the driver should dump the exposure data into a buffer
- the client gets the raw data and does whatever it wants with it
open questions about this API remain:
- what is the best way to notify the client the exposure is ready to be downloaded? Callback into the client? Client polling a driver property until it is ready?
- should the buffer be dynamically allocated to store more exposures or should the driver block until the latest exposure is downloaded?
An exposure cycle is usually following this flow:
right now, to have a semi-functional driver that can be tested the driver converts binary data into FITS and dumps the picture to the disk.
The exposure cycle should be refactored such that:
open questions about this API remain: