SX260 HS Porting Thread - page 62 - DryOS Development - CHDK Forum
supplierdeeply

SX260 HS Porting Thread

  • 642 Replies
  • 150945 Views
*

Offline lapser

  • *****
  • 1093
Re: SX260 HS Porting Thread
« Reply #610 on: 17 / May / 2014, 21:13:35 »
Advertisements
This is the part of my time lapse script I use to set the focus at the beginning. It works for the SX260, G1X, SX50, and D20. With the D20, you have to use negative d parameter values (to avoid switching to manual focus).

Are you using a script to take the pictures? If so, don't use the focus override, use set_focus() in the script.

If you want to, try saving this little script in a text file called "cshot.lua and see if it works on your sx260. Put the camera in continuous mode, and set the exposure manually before starting (high ISO, fast shutter). It should take pictures as rapidly as possible for the entire flight. Be sure review is off.
Code: [Select]
@title cshot

@param d Focus 1=inf 2=hyp
@default d 2
--
function press_half()
  press("shoot_half")
  repeat sleep(10) until get_shooting()
end

function release_half()
  release("shoot_half")
  while(get_shooting())do sleep(10) end
end

--set manual focus if d>0
set_aflock(0)
if(get_focus_mode()~=1 and d>0)then
  press_half()
  click("left")
  release_half()
end

if(d~=0)then
  if(d<0)then d=-d end
  if(d==1)then d=-1
  elseif(d==2)then d=(get_dofinfo().hyp_dist*110)/100 end
  --sometimes d is truncated below hyp-dist and far limit isn't inf (-1)
  --multiplying by 1.1 (or 110/100 integer math) corrects this
  set_focus(d)
  sleep(500)
end
press("shoot_full") -- hold shutter down in continuous mode for entire flight
repeat until false
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline reyalp

  • ******
  • 13387
Re: SX260 HS Porting Thread
« Reply #611 on: 18 / May / 2014, 00:00:13 »
My main problem with the camera is that I wanted to use it for aerial photo from a UAV, but images are always out of focus with any combination of settings imaginable.
Does this include setting the camera to manual focus in the Canon firmware and manually setting the focus to some large distance?

If so, this suggests some other problem.

Note that Canon MF may be unset if you turn the display off.
Don't forget what the H stands for.

Re: SX260 HS Porting Thread
« Reply #612 on: 18 / May / 2014, 00:23:16 »
I have been using 1/1600s and high iso to get bright and sharp photos from the air with several cameras. The crashes and focusing issues are specific to the sx260.

I just noticed that when a subject distance override is set there is a clear difference between a quick half press and a long half press. With the long press the camera completes its focusing process and osd numbers stabilize. With the quick one this process is not completed. I can produce a crash with the quick one almost always and with the long one it does not happen.  Activating continuous AF disables the override and there is never a crash.

I have attached the crash log from a quick half press.

The advice from lapser to set focus from script is great. That works fine on the ground and I will test from the air on Monday.



So to summarize so far: when distance override is set, avoid crashes by not setting manual focus and not doing quick half presses. Better yet do not use distance override and use a script to set_focus


Re: SX260 HS Porting Thread
« Reply #613 on: 18 / May / 2014, 00:42:24 »
The advice from lapser to set focus from script is great. That works fine on the ground and I will test from the air on Monday.
Interesting.  In 1.3.0, the script MF stuff has gone through a lot of revisions to make it work as well as possible - or at least to not crash.   It looks like this is another example of the menu SD overrides not being in that state (yet).
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline lapser

  • *****
  • 1093
Re: SX260 HS Porting Thread
« Reply #614 on: 18 / May / 2014, 11:42:11 »
The advice from lapser to set focus from script is great. That works fine on the ground and I will test from the air on Monday.
Interesting.  In 1.3.0, the script MF stuff has gone through a lot of revisions to make it work as well as possible - or at least to not crash.   It looks like this is another example of the menu SD overrides not being in that state (yet).
I found that I needed to do the sleep(500) after set_focus() in the script, or it would crash. That's probably why it crashes with the focus override set with a short half press, and not a long one. It probably needs a delay until the focus is ready. The ROMLOG shows the same focus assert crash that I got with no delay.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: SX260 HS Porting Thread
« Reply #615 on: 28 / May / 2014, 02:49:24 »
Hi. I have been unable yet to figure out how to get properly focused images with the SX260 from the air.
Today I also noted that the crash with the quick half press when focus override is set also occurs on 2 different Elph320 with different firmware versions and same chdk 1.3.0-3429 . So it was not a SX260 issue.

Re: SX260 HS Porting Thread
« Reply #616 on: 28 / May / 2014, 04:23:05 »
This is the part of my time lapse script I use to set the focus at the beginning. It works for the SX260, G1X, SX50, and D20.

With the SX50hs in continuous-shooting mode, have you managed to get focus-override (as a menu option) to work ?

My camera crashes.

Also, setting manual-focus mode with a script command does not display the Canon gui (the vertical bargraph).

*

Offline lapser

  • *****
  • 1093
Re: SX260 HS Porting Thread
« Reply #617 on: 28 / May / 2014, 11:09:47 »
With the SX50hs in continuous-shooting mode, have you managed to get focus-override (as a menu option) to work ?
My camera crashes.
I haven't tried it recently, but I remember having the same problem when experimenting with the focus override awhile back. Sorry, I don't have a solution.

One thing you can try is turning "safety manual focus" on. (Make sure the camera is in manual focus mode). If that crashes, try inserting a "msleep(500)" in the focus override code. I had crashes without that delay on some of my cameras.
Quote
Also, setting manual-focus mode with a script command does not display the Canon gui (the vertical bargraph).
That's actually a desirable effect for my time lapses. It happens on all my cameras.The camera shows the last picture taken when in continuous mode, so you can see what you're doing. The Canon GUI does show up again when you exit the script, including "Press <SET>" on the SX50.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos


Re: SX260 HS Porting Thread
« Reply #618 on: 18 / June / 2014, 21:59:14 »
The focusing problem was apparently caused by vibrations in the airplane. The SX260 seems to be hypersensitive to this. A new type of insulation removed these vibrations and now it works fine with autofocus.

Re: SX260 HS Porting Thread
« Reply #619 on: 04 / August / 2014, 05:40:35 »
All links to download chdk are dead. Can someone share chdk for another place ?

 

Related Topics