SX50 HS porting thread - page 3 - DryOS Development - CHDK Forum

SX50 HS porting thread

  • 350 Replies
  • 164922 Views
Re: SX50 HS porting thread
« Reply #20 on: 19 / November / 2012, 16:34:34 »
Advertisements
ERR99 only included the diskboot.bin and ps.fi2 files in the earlier post, not the complete build. So it will be tricky for anyone to install and get working.
Tricky ?  Pretty much impossible without the flt modules I think ?  Thanks for catching that !
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline ERR99

  • ****
  • 339
Re: SX50 HS porting thread
« Reply #21 on: 19 / November / 2012, 16:37:12 »
Okay, i think the port has now reached ALPHA status. All major CHDK stuff is ported (but not deeply tested).
Would you mind submitting a patch file for the SVN & autobuild ?  Mark the camera as

sx50hs,100b,ALPHA,,SKIP_AUTOBUILD

in the platform_camera.h file ?
Yes, sure. I posted the patch here:  http://chdk.setepontos.com/index.php?topic=650.msg93465#msg93465

*

Offline ERR99

  • ****
  • 339
Re: SX50 HS porting thread
« Reply #22 on: 19 / November / 2012, 16:43:39 »
Here is the additional CHDK Folder, needed for ALPHA test build. (Extract the CHDK folder to SDCARD root directory).

*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #23 on: 19 / November / 2012, 17:48:26 »
run a couple of DOF scripts and sometimes works  other times the camera DE-powers ( does no retract lens etc). HDR script did seem to work.

*

Offline ERR99

  • ****
  • 339
Re: SX50 HS porting thread
« Reply #24 on: 20 / November / 2012, 04:01:30 »
Please post a link to the used DOF script.

Re: SX50 HS porting thread
« Reply #25 on: 20 / November / 2012, 10:58:44 »
Thanks for the first Alpha, great.

Maybe i am wrong but the motion detection does not work for me (the cam is taking shoots in a loop). This is the same on using another script which works fine on the sx230. 

The weel "direction" is differend, if you turn right then on the sx230 the selection bar goes "down" on the sx50 "up".

Cheers
« Last Edit: 20 / November / 2012, 11:10:28 by mp1405 »

*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #26 on: 20 / November / 2012, 12:09:00 »
DOF - seem as most of the ones i used on thesx30... I will post a couple later  as they were amended

*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #27 on: 20 / November / 2012, 13:14:37 »
this is one of the scripts


rem Author SkyWalker9
@title MFDOF
@param b Step size [x5]
@default b 8
@param c #Photos
@default c 10
@param h Save log (0=No)
@default h 0

if c<1 then c=1
if b<1 then b=1
b=b*5
d=b/2
sleep 500
get_focus f
e=f

x=get_IS_mode
  select x
    case 0; print "Caution: IS enabled"
    case 1; print "Caution: IS enabled"
    case 2; print "Caution: IS enabled"
  end_select
 
press "shoot_half"
sleep 1000

x=get_near_limit
y=get_far_limit

print "Adjust Near Pt"
print "Focus Limits: "x"-"y
print "focus:"f
gosub "tweak_loop"
a=f
cls

f=e
set_focus f

print "Adjust Far Pt"
print "Focus Limits: "x"-"y
print "focus:"f
gosub "tweak_loop"
z=f
cls

if z>a then goto "Bracket_DOF"
  d=a
  a=z
  z=d

goto "Bracket_DOF"

:tweak_loop
     wait_click 10000
     is_key k "zoom_out"
     if k=1 then f=f-b
     is_key k "zoom_in"
     if k=1 then f=f+b
     is_key k "left"
     if k=1 then f=f-d
     is_key k "right"
     if k=1 then f=f+d
     is_key k "set"
     if k=1 then goto "exit_loop"
     set_focus f
     print "focus:"f
  goto "tweak_loop"
:exit_loop
return

:Bracket_DOF
  if h=0 then goto "Continue"

  y=get_time 0
  x=get_time 1
  w=get_time 2
  m=get_time 3
  n=get_time 4
  p=get_time 5
  g=w*100+x
  if g<1 then g=1
  if g>9999 then g=9999

  print_screen g

  print "Date: "m"/"n"/"p
  print "Time: "w":"x":"y

  print " "

  x=get_hyp_dist
  print "Hyperfocal_dist: "x

  x=get_dof
  print "DOF Sharpness: "x

  x=get_near_limit
  y=get_far_limit
  print "Focus Limits: "x"-"y

  print "Start focus: ", e
  print " "

  print "Selected:", a"-"z

  v=((z-a)/2)+a
  w=(((z-a)/2)+a)*3937/100000
  n=(((z-a)/2)+a)*3937/1000
  m=n/10
  n=n-(m*10)
  m=m-(w*10)
  if n>5 then let m=m+1
  print "Est Subj Dist: "v" mm ("w"."m" inches)"
  print " "

:Continue
    release "shoot_half"
    sleep 1000
    g=a
    if c>1 then d=(z-a)/(c-1)
    for s=1 to c
      print "Photo "s":", g
      set_focus g
      sleep 500
      shoot
      g=g+d
    next s

    if h=0 then print_screen 0

    set_focus e
end

*

Offline bojofbas

  • *
  • 22
  • SX50 100b
Re: SX50 HS porting thread
« Reply #28 on: 20 / November / 2012, 18:16:53 »
Also cant seem to get to work "bracketing in continuous Mode" by setting "Subj. Dist. Bracket Value...[0 – 100] " and setting camera in MF and continuous. 

he focus does not seem to change and often crashes the camera. Used this in my old SX30 for stacking, but cant seem to get it to work in this early port.  Can't compare as my SX30 went in as part exchange.

Also no multiplier in the "Subj,Dist. Bracket Value"  as there was for the SX30  eg "Value factor (mm)...[Off, 1, 10, 100, 1000]"

So if you can help as I  did  use this for macro staking and want to do it on the sx50.

« Last Edit: 20 / November / 2012, 18:38:37 by bojofbas »

Re: SX50 HS porting thread
« Reply #29 on: 20 / November / 2012, 23:08:36 »
Testing out CHDK + SX50 + Motion Detect:
1. seem to working OK
2. With motion detect if continous shooting, adjust threshhold
3. the camera may turn off with lens still sticking out  (only see this one time still testing)

Download Trunk-2297 compiled with the following options ON:
OPT_UBASIC
OPT_LUA_STRLIB
OPT_LUA_OSLIB
OPT_GEN_STUBS
OPT_EDGEOVERLAY
OPT_LUA
OPT_LUA_IOLIB
OPT_LUA_CALL_NATIVE
OPT_GEN_SIGS

 

Related Topics


SimplePortal © 2008-2014, SimplePortal