upgrades to set_tv96(), set_av96(), set_sv96() for SET_NOW & SET_LATER - page 2 - General Discussion and Assistance - CHDK Forum

upgrades to set_tv96(), set_av96(), set_sv96() for SET_NOW & SET_LATER

  • 10 Replies
  • 6565 Views
*

Offline lapser

  • *****
  • 1093
Re: upgrades to set_tv96(), set_av96(), set_sv96() for SET_NOW & SET_LATER
« Reply #10 on: 12 / October / 2013, 20:18:29 »
Advertisements
Quote
Great! Once it's in the trunk, I'll update my time lapse script to use the new functions in continuous mode and get rid of the set_exp96() function in my builds. I'll let you know how it works.
I'm happy to report that the new functions work for tv, sv, and nd filter. I don't use av in my script, so I didn't the av functions

In addition to setting the exposure (which is no longer needed), set_exp96() also clears the shot wait flag. In continuous mode the shot waits in process_raw() until the exposure for the next shot has been set with set_exp96(), OR, get_shot_ready() is called again. But I can just call get_shot_ready() twice for each shot to clear the wait flag. This is how it works:

Code: [Select]
ready=false
repeat
  while(not ready)do
    wait_click(10)
    -- process click
    ready=get_shot_ready()
  end
  --compute new exposure tv,sv,nd
  set_tv96_direct(tv)
  set_sv96(sv)
  set_nd_filter(nd)
  --set_exp96(tv,sv,0,nd)  -- not needed now!
  ready=get_shot_ready() -- go on to next shot during print
  --print(the data)
until done

This is a major improvement to CHDK. Thanks waterwingz for getting it done.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

 

Related Topics


SimplePortal © 2008-2014, SimplePortal