And another question:
My latest Idea is:
- I enable the USB_POWER signal from my autopilot. My autopilot knows exactly when this occured.
- The script enables continous trigger (as in the file) and stores the difference in ms between every shot
- Using post-processing of this file (print_screen), I can more accurately determine on what moment the photo was taken. Instead of second-resolution, I should get millisecond resolution :-)
This is my script:
repeat sleep(100) until get_shooting() == true
release("shoot_half")
repeat sleep(100) until get_shooting() == false
set_aflock(1)
repeat until get_usb_power() > 6
a = get_tick_count()
b = 1
print_screen(true)
repeat
sleep(100)
if get_usb_power() > 6 then
press("shoot_full")
repeat sleep(100) until get_shooting() == true
print("#:", b, " -> ", get_tick_count()-1)
b = b+1
a = get_tick_count()
end
until false
Result:
#: 1 -> 24259
#: 2 -> 26129
#: 3 -> 29179
#: 4 -> 31289
#: 5 -> 33389
#: 6 -> 36459
#: 7 -> 37479
#: 8 -> 38499
#: 9 -> 40609
#: 10 -> 41629
#: 11 -> 42619
#: 12 -> 44599
#: 13 -> 45619
#: 14 -> 46699
#: 15 -> 48679
#: 16 -> 49699
#: 17 -> 50719
#: 18 -> 52699
#: 19 -> 53719
#: 20 -> 54739
#: 21 -> 56849
#: 22 -> 58929
#: 23 -> 60909
*** INTERRUPTED ***
Unfortunately I get some weird results. In reality 21 photos were taken (or stored on my SD card). My script says there are 23 photos taken: 5 only a second(!) after the previous ones, while my camera can only shoot one picture every 2 seconds (or so I measured).
What could be wrong in my script? Is the script doing a full_shoot before my camera is ready?