get_shooting going false seems a reasonable event to restart the turntable rotation...although it also seems the hook_raw may speed that up a bit? (i.e. at start of buffer writing rather than end?)
Yes, hook_raw should be the start of the raw hook, which is definitively after the exposure is complete, but before saving raw/DNG. If you aren't shooting raw, the difference is marginal
I'd like to implement a download (jpg&dng) from sd (and delete) to pc asap after rotation restarts however a test (using shoot in chdkptp GUI) shows that get_exp_count() increments by 1 only (I assume that is related to jpg save and this thread makes me aware the counter is updated before the file is completely saved anyway).
The counter behavior varies between cameras and is somewhat unreliable. In general, on most cameras it should increment before the raw hook is entered,
if raw is enabled. However, there are probably ports that are broken, and some that are usually correct but occasionally increment late.
On some old cameras (Digic II, maybe early Digic III era) it doesn't increment until after raw saving is complete.
Is there anything other than a large wait that I might rely on to ensure both jpg&dng have finished saving to sd before download jpg&dng to pc is initiated - if nothing has changed since the last post in this thread I assume not?
Unfortunately, there isn't any currently any reliable indication when jpeg is done. This might be something we could hack into the filewrite code (currently used for remoteshoot) but it hasn't been done yet. It's also possible PT_CompleteFileWrite in
http://chdk.setepontos.com/index.php?topic=5690.0 could be used.
If you were only using one camera, I'd suggest using remoteshoot, but it's not a good solution for multiple cameras because at the moment you can only remoteshoot from one camera at a time. It would be theoretically possible make multicam do remoteshoot over multiple cameras, but the code would be really complicated.