supplierdeeply

SX30 IS Release - available on the autobuild server

  • 282 Replies
  • 70896 Views
Re: SX30 IS Release - available on the autobuild server
« Reply #280 on: 10 / September / 2012, 14:48:52 »
Advertisements
oh. Weird. Sorry, that was my bad, I missed the Lua/uBasic columns (reading too fast)

Why did it work in the earlier build? was the get_dofinfo() function added/changed between 1718 and 1725?

and so I understand how to change, I need to change

hyfDist = get_hyp_dist()

to

dof=get_dofinfo()
hyfDist = dof.hyp_dist


that doesn't seem so bad... :)

Thanks for your patience.
A720 1.00c | D10 1.00b |SX220 1.01a | SX230 ? | SX30 1.00p CHDK ver. 1.1.0-r1727

*

Offline reyalp

  • ******
  • 11514
Re: SX30 IS Release - available on the autobuild server
« Reply #281 on: 10 / September / 2012, 17:27:57 »
hyfDist = get_hyp_dist()

to

dof=get_dofinfo()
hyfDist = dof.hyp_dist


that doesn't seem so bad... :)
or
Code: [Select]
hyfDist=get_dofinfo().hyp_dist
Don't forget what the H stands for.

Re: SX30 IS Release - available on the autobuild server
« Reply #282 on: 26 / October / 2012, 14:00:06 »
It looks to me like there is a periodic issue when I try to set hyperfocal distance? I am using almost identical scripts on SX30 and SX220HS, and I only have this issue on the SX30. I am trying to set focus to the hyperfocal distance at zoom step 0, and periodically after a power cycle (maybe one time in five?) the focus sets to minimum instead. I had this problem before at other zoom steps too.

For example images you can see here (timelapse on a river):
we're cycling power every 4 hours to trigger uploads from the eye-fi card over a cellular hotspot.

http://www.flickr.com/photos/usgs_elwhacams/sets/72157631807258313/

Code: [Select]
function pre_focus()
  local p = get_prop(props.FOCUS_MODE)
  if p == 1 then
    print "Manual focus (MF) found"
  else
    while p ~= 1  do
  sleep(500)
      click("left")
      click("right")
      click("set")
  sleep(500)
      p = get_prop(props.FOCUS_MODE)
    end
    print "Focus set to manual (MF)"
  end

  local focused = false
  hyFo = get_dofinfo().hyp_dist
  print("focusing to hyperfocal distance")
  set_focus(hyFo)
  focused = true
  return focused

Any ideas what's going on?
A720 1.00c | D10 1.00b |SX220 1.01a | SX230 ? | SX30 1.00p CHDK ver. 1.1.0-r1727

 

Related Topics