repeat hook_raw.wait_ready() -- when raw ready blink_led() -- blink led --wait for robot to trigger if ((is_pressed("remote")) or (is_pressed("video"))) then hook_raw.continue() end until ( false )
hook_raw.wait_ready()blink()repeat sleep(10) until is_pressed(...) --- or something with wait_clickhook_raw.continue()
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?)
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).
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?
Could it be possible to read the "file created time" attribute via lua script?Could it be possible to read the "filesize" attribute via lua script?
If it were possible to read the time created attribute of all sd image files and loop until 2 of these files are equal or greater to time at exposure start then loop over these two files until their filesize attribute no longer changed then, I assume, both jpg&dng files have finished saving to sd card.
Edit: is it known if the buffer (or buffers) is/are marked in some way after save to sd is completed?
FWIW, JPEG will always be after the raw, so you should only need to look at that one.
Is it known if os.time() rounds or truncates (or something) to the second?
Started by RoyJN
RAW Shooting and Processing
Started by federico99
Started by euroskip
General Help and Assistance on using CHDK stable releases
Started by sas4740
Started by r0xx