SX200is Porting - page 77 - DryOS Development - CHDK Forum

SX200is Porting

  • 1105 Replies
  • 564474 Views
*

Offline reyalp

  • ******
  • 14118
Re: SX200is Porting
« Reply #760 on: 26 / November / 2009, 21:17:51 »
Advertisements
In \core\kbd.c,

#if defined(CAMERA_sx200is)
#define ZSTEP_TABLE_SIZE 8

should be :-

#define ZSTEP_TABLE_SIZE 7

EDIT:

I guess you already know that (I have not been following this very long thread)
Corrected, thanks.

To others in this thread:
If there are other outstanding patches that are ready to check in, feel free to remind me.
Don't forget what the H stands for.

Re: SX200is Porting
« Reply #761 on: 27 / November / 2009, 06:10:57 »
Does anyone know what this code does? Source: http://www.dslr-forum.de/showthread.php?t=552082&page=11


______________________________________________________
rem SX200 By Dulap
@title zoom / focus in video

s=15
z=15
y=5

get_focus u
o=0

get_prop 6 q
if q=0 then set_prop 6 1

press "shoot_half"
sleep 800
click "shoot_full"

print "SET - Stop Rec"
print "Shoot Half - Auto Focus"

:loop


wait_click

if is_key "zoom_in" then goto "in"
if is_key "zoom_out" then goto "out"
if is_key "up" then goto "focus_1"
if is_key "down" then goto "focus_2"

if is_key "shoot_half" then set_aflock 1

if is_key "set" then goto "end"

if is_key "menu" then goto "menu_focus"
if is_key "display" then goto "display_focus"

goto "loop"


:in
if z<0 then z=1
if z>13 then z=13
set_zoom_rel z
get_zoom r
set_zoom_speed y
sleep 100
set_aflock 1
print "zoom ", r
print "zoom speed ", y
goto "loop"

:out
if z<0 then z=1
if z>13 then z=13
set_zoom_rel -z
get_zoom r
set_zoom_speed y
sleep 100
set_aflock 1
print "zoom ", r
goto "loop"

:focus_1
set_zoom_rel 15
set_zoom_speed y
set_aflock 1
goto "loop"
return

:focus_2
set_zoom_rel -15
set_zoom_speed y
set_aflock 1
goto "loop"
return

:menu_focus
v=v+1
gosub "focus_DISP/MENU"
goto "loop"

:display_focus
v=v-1
gosub "focus_DISP/MENU"
goto "loop"

:focus_DISP/MENU
u=(v*v*v*v)
if v>=12 then u=65535
if v<1 then let v=1
if v>20 then let v=20
set_focus u
get_focus t
print "focus", v; "/20 ("t; " mm)"
return

:end
click "shoot_full"
end

end

wait_click
cls
return
_________________________________________________________




My german is not so good that I understand exactly what this does. Obviously some kind of autofocus during video.

Re: SX200is Porting
« Reply #762 on: 27 / November / 2009, 13:23:07 »
Does anyone know what this code does? Source: http://www.dslr-forum.de/showthread.php?t=552082&page=11
Hi whatevertsunami,

here are the Source from this Script http://www.wirklemms.de/chdk/forum/viewtopic.php?p=13494#13494
Look at the videos on Youtube, as is well explained in the functional.

cu Hamster
« Last Edit: 27 / November / 2009, 13:26:52 by Hamster.78 »
SX100 100c

Re: SX200is Porting
« Reply #763 on: 27 / November / 2009, 14:58:02 »
Does anyone know what this code does? Source: http://www.dslr-forum.de/showthread.php?t=552082&page=11
Hi whatevertsunami,

here are the Source from this Script http://www.wirklemms.de/chdk/forum/viewtopic.php?p=13494#13494
Look at the videos on Youtube, as is well explained in the functional.

cu Hamster

Hello Hamster, and thanks for your reply!

So does that mean this is the code for a script that allows zoom & autofocus during video? If so, why isn't the script included in the firmware build for sx200? People have said the autofocus is still under construction.


Re: SX200is Porting
« Reply #764 on: 30 / November / 2009, 08:58:50 »
Good question, I would like to test but I don't even know where to paste that code.

Re: SX200is Porting
« Reply #765 on: 30 / November / 2009, 09:13:05 »
ok I was able to run that as a script.

Re: SX200is Porting
« Reply #766 on: 30 / November / 2009, 09:51:19 »
ok I was able to run that as a script.

Great theplague! So the name of the script file doesn't matter I presume? And what did it do? Was it like a regular, fully functioning zoom + autofocus during video?

If yes, I still wonder why it isn't included in the firmware.

Re: SX200is Porting
« Reply #767 on: 30 / November / 2009, 16:42:04 »
Thank you all! :D :D Vielen Dank! :D


*

Offline Darkness

  • **
  • 72
  • SX200IS 100D
Re: SX200is Porting
« Reply #768 on: 02 / December / 2009, 08:45:15 »
ok I was able to run that as a script.

Great theplague! So the name of the script file doesn't matter I presume? And what did it do? Was it like a regular, fully functioning zoom + autofocus during video?

If yes, I still wonder why it isn't included in the firmware.
scripts and firmware are not the same, you cannot just copy it from one to the other. It can also influence other parts or fix something to certain settings while others might want different settings.
SX200IS 100D

Re: SX200is Porting
« Reply #769 on: 02 / December / 2009, 10:00:03 »
ok I was able to run that as a script.

Great theplague! So the name of the script file doesn't matter I presume? And what did it do? Was it like a regular, fully functioning zoom + autofocus during video?

If yes, I still wonder why it isn't included in the firmware.
scripts and firmware are not the same, you cannot just copy it from one to the other. It can also influence other parts or fix something to certain settings while others might want different settings.

Ok, I see. Does it even help or are scripts and firmware completely different?

Well it's still nice to have a script as long as the firmware is unfinished. If anyone has tried it I would like to hear what it did and didn't do?

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal