CHDK firmware hack discussion (12)

Started Jun 15, 2007 | Discussions
GrAnd
Regular MemberPosts: 325
Like?
Re: feature request
In reply to Russel_Sprouts, Jun 27, 2007

Russel_Sprouts wrote:

CHDK menu --} Miscellaneous Stuff --} Disable LCD off
choices are: no script alt
Now that I've begun utilizing the wait_click command, the LCD
poweroff is again a frquent annoyance... so it's time to ask:
[snip]

GrAnd, can you add an "always" option?
no script alt ALWAYS

Actually, 'script' means 'alt' and 'script'. The name 'always' is a little bit confusing (it may mean 'alt' and 'non-alt'), and 'alt'+'script' is to long for menu.

Reply   Reply with quote   Complain
rafferty
New MemberPosts: 4
Like?
Re: Grids and Masks
In reply to microfunguy, Jun 27, 2007

My (small) contribution:

@title 3:2 with Rule of Third
@rect 0, 84, 359, 156, 17
@rect 119, 11, 240, 229, 17
@rectf 0, 0, 359, 11, 68, 68
@rectf 0, 229, 359, 259, 68, 68

This one conbines the Rule of Third grid with semi-transparent upper and lower crop border for 3:2 pictures (for example 15x10cm). I found it usefull for myself.
Excellent freeware to crop JPEG pictures: http://ekot.dk/programmer/JPEGCrops/

Rafferty

Reply   Reply with quote   Complain
microfunguy
Regular MemberPosts: 234
Like?
Re: Grids and Masks
In reply to microfunguy, Jun 27, 2007

Cross-hair to show exact centre of screen :-

@title Cross-hair
@line 0, 119, 175, 119, 3
@line 184, 119, 359, 119, 3
@line 179, 0, 179, 115, 3
@line 179, 124, 179, 239, 3

Reply   Reply with quote   Complain
microfunguy
Regular MemberPosts: 234
Like?
Re: Grids and Masks
In reply to microfunguy, Jun 27, 2007

16:9 mask :-

@title 16:9 aspect-ratio
@rectf 0, 0, 359, 29, 255, 255
@rectf 0, 210, 359, 239, 255, 255

Reply   Reply with quote   Complain
GrAnd
Regular MemberPosts: 325
Like?
Re: Grids and Masks
In reply to microfunguy, Jun 27, 2007

Folks, please do not forget to put your useful grids into wiki - http://scratchpad.wikia.com/wiki/CHDK/Grids

Reply   Reply with quote   Complain
microfunguy
Regular MemberPosts: 234
Like?
Re: Grids and Masks
In reply to GrAnd, Jun 27, 2007

In the 'Night Vision Protection' part of the Grid WIKI, a horizontal half-tone pattern is suggested as a possible means of reducing screen brightness.

This has been added http://scratchpad.wikia.com/wiki/CHDK/Grids#--_Night-Vision_Protection

If still not dark enough, fill the entire screen with transparent grey first.

David

Reply   Reply with quote   Complain
candag
New MemberPosts: 1
Like?
Re: CHDK firmware hack discussion (12)
In reply to zdravko, Jun 27, 2007

Hey,

I have a 400D and I want to port some of the CSDK features to my camera - honestly, just the idea of tinkering with camera sounds good!

As far as I could tell I need to use the firmware to get the address positions I need. I have the firmware and all I need the the firmware dumper...

Where can I get it?!

btw, as anyone tried to port CHDk to any SLR camera?

best
André

Reply   Reply with quote   Complain
Asaf Tzadok
Regular MemberPosts: 130
Like?
s2is-100f support for new raw release
In reply to zdravko, Jun 27, 2007

GrAnd, Do you plan to update the support for s2is-100f ?
This new raw sounds interesting.

Reply   Reply with quote   Complain
ChildeRandom
New MemberPosts: 14
Like?
Re: Grids and Masks
In reply to GrAnd, Jun 27, 2007

GrAnd wrote:

Folks, please do not forget to put your useful grids into wiki -
http://scratchpad.wikia.com/wiki/CHDK/Grids

I've added a corrected 6x6 grid and a 6x6 grid with crosshair to the above wiki.

-- hide signature --

CR

Reply   Reply with quote   Complain
GrAnd
Regular MemberPosts: 325
Like?
Re: s2is-100f support for new raw release
In reply to Asaf Tzadok, Jun 27, 2007

Asaf Tzadok wrote:

GrAnd, Do you plan to update the support for s2is-100f ?

This is Vitaly's action item.

Reply   Reply with quote   Complain
microfunguy
Regular MemberPosts: 234
Like?
Re: Grids and Masks
In reply to ChildeRandom, Jun 28, 2007

In my own version of CHDK I am going to add a menu option for grid colour.

You can choose 'GRD' or 'RED'.

If 'GRD' is chosen, the foreground colour used is as specified in the .grd file.

Otherwise it is red.

Maybe this could be in the official version of CHDK instead ?

David

Reply   Reply with quote   Complain
blabla0815
Forum MemberPosts: 96
Like?
Re: 400D support
In reply to candag, Jun 28, 2007

candag wrote:

I have a 400D and I want to port some of the CSDK features to my
camera - honestly, just the idea of tinkering with camera sounds
good!

As far as I could tell I need to use the firmware to get the
address positions I need. I have the firmware and all I need the
the firmware dumper...

Where can I get it?!

btw, as anyone tried to port CHDK to any SLR camera?

I have tried to start a port for the 350D, you can decrypt its firmware with a program called decrypt20d. You can find this program in the download section from a canon hacker yahoo group. You can download the firmware file from Canon. I tried to decrypt the firmware of the 400D as well, but it does not work. They have probably changed the key, or worse. If they did not change the encryption (think it is just XORed with some x-bit long key), it is probably pretty simple to find the new key by standard methods. But maybe it is easier to write a firmware dumper, but i have no idea how this works.

However, after an hour or so, i have not continued my efforts to port CHDK to the 350D, because i could not find a lot of function which you need to port it. I did not find enough time, maybe i try later this year.

Reply   Reply with quote   Complain
Fragglerock
Forum MemberPosts: 68
Like?
Zoom Problem
In reply to blabla0815, Jun 28, 2007

Hi all,

I'm trying a script with zoom functions, one i wrote and one from the wiki written by koeeti.

With te two scripts i can take the first picture, the camera is zooming and then the camera is blocked (i have to switch it off).

Do you know what is the problem with this script ?
What i'm doing wrong ?

Thaks

Reply   Reply with quote   Complain
Russel_Sprouts
Regular MemberPosts: 257
Like?
Re: CHDK firmware hack discussion (12)
In reply to zdravko, Jun 28, 2007

I'm posting my version of a "zoom bracketing" script.
zoom_series.bas (written for the A610/620)
It differs from the existing "Zoom Shoot!" script (posted to the wiki)

-- hide signature --

enables user to choose / omit specific focal lengths to be included in the series. (Stored as param values, the selections are retained thru power off/on cycles, unless/until a different script is loaded.)

-- user can elect to use a startup delay (a missing convenience, errrm necessity, the absence of which motivated me to draft this script). Also, seconds and minutes can be entered separately (instead of having to scroll to 300s to set 5min delay, which would be the case if a single input param for seconds was available)

Usage notes:

The scenario I initially had in mind for this script was "scenic / self-portraits while hiking". It's useful in various other scenarios, like on-location group photos (family trip to the zoo, etc)

Before the start delay countdown, the script autozooms and prompts user to frame the subject area while viewing at full tele (for composition precision). Note: "subject area" isn't necessarily same as subject. If the series will be a self portrait, during setup you will frame the shot to achieve focus at the area (or at a distance equal to) where you will be situated during the shoot.

======== zoom_series.bas ========

@title Zoom Series
rem for A610/A620 (cams with 35-140mm lens)(9 zoom steps)(0 thru 8)
rem should also work with A630/A640

rem omitting some focal length choices
rem because only TEN params are available
@param a incl 35mm (1=yes)
@default a 1
@param b incl 45mm (1=yes)
@default b 0
@param c incl 51mm (1=yes)
@default c 1
@param d incl 60mm (1=yes)
@default d 1
@param e incl 71mm (1=yes)
@default e 1
@param f incl 83mm (1=yes)
@default f 0
@param g incl 104mm (1=yes)
@default g 1
@param h incl 140mm (1=yes)
@default h 1
let z=a+b+c+d+e+f+g+h
rem this sanity check not foolproof but...
if z8 then gosub "nothing"

@param i Start delay (sec)
@default i 5
@param j Start delay (min)
@default j 0

rem Change code so that "show helptext" is optional
rem if/when CHDK permits additional params.
gosub "instruct"

if w> 0 then gosub "countdown"

if h=1 then shoot
if g=1 then set_zoom 7
if g=1 then shoot
if f=1 then set_zoom 6
if f=1 then shoot
if e=1 then set_zoom 5
if e=1 then shoot
if d=1 then set_zoom 4
if d=1 then shoot
if c=1 then set_zoom 3
if c=1 then shoot
if b=1 then set_zoom 2
if b=1 then shoot
rem if a=1 then set_zoom 0
rem Instead of above, let's unconditionally SET_ZOOM 0
rem so cam is at full-wide state when script ends.
set_zoom 0
if a=1 then shoot
print " finished "
print "."
end

:instruct
rem This scripts works with flash on or off.
rem Only 2 known preconditions/requirements:
rem -- cam cannot be set to manual focus
rem -- Menu } Review should not be set to "HOLD"
rem
print "1 shot at each selected"
print "focal length"
print "."
print "tripod use OPTIONAL"
print "paused --[ click SET ]--"
wait_click
set_zoom 8
print "begins at full zoom"
let w=j*60+i
print "(after",w;"s start delay)"
print "."
print "Frame your subject area"
print "& click [SET] when ready"
wait_click
rem blank lines scroll away previous helptext
print " "
print " "
print " "
print " "
print " "
return

:nothing
print "0 focal lengths chosen"
print "nothing to do !"
return

:countdown
rem May want to force minimum 2sec start delay here
rem to eliminate camera shake from button press.
rem (I decided it is not needed in the zoom_series script)
rem if w
for n=1 to w
let m=w-n+1
print "countdown:", m,"secs"
sleep 940
next n
rem NOTE: Loop timer, above, has been checked for accuracy
rem blank lines scroll away countdown text
print " "
print " "
print " "
print " "
print " "
return

===========================

Reply   Reply with quote   Complain
Russel_Sprouts
Regular MemberPosts: 257
Like?
unprintable characters?
In reply to zdravko, Jun 28, 2007

Above, the zoom_series.bas code did not post properly.

The line which reads:

if z8 then gosub "nothing"

needs to be:

if z less-than-symbol 1 logical-OR z greater-than-symbol 8 then gosub "nothing"

(the "logical-OR" symbol is the "vertical pipe" aka shift+backslash)

Reply   Reply with quote   Complain
Asaf Tzadok
Regular MemberPosts: 130
Like?
Re: s2is-100f support for new raw release
In reply to GrAnd, Jun 28, 2007

How can I ask Vitaly to add it to the list ?

GrAnd wrote:

Asaf Tzadok wrote:

GrAnd, Do you plan to update the support for s2is-100f ?

This is Vitaly's action item.

Reply   Reply with quote   Complain
Don Glenn
Contributing MemberPosts: 850
Like?
Re: Grids and Masks 16:9 thanks
In reply to microfunguy, Jun 28, 2007

microfunguy wrote:

16:9 mask :-

@title 16:9 aspect-ratio
@rectf 0, 0, 359, 29, 255, 255
@rectf 0, 210, 359, 239, 255, 255

Thanks.

Reply   Reply with quote   Complain
Marty Too
Senior MemberPosts: 1,000
Like?
Focus Bracketing?
In reply to zdravko, Jun 29, 2007

I see that there is a "work in progress" script for focus bracketing on the Wiki. Has anyone made improvements to this? If so can you post this or point me in the right direction?

Thankyou.

Reply   Reply with quote   Complain
Russel_Sprouts
Regular MemberPosts: 257
Like?
Re: Focus Bracketing?
In reply to Marty Too, Jun 29, 2007

Marty, which model camera? Also, what is your intended application -- what do you want the script to do?

I started writing a focus-stepping script, specifically intended to automate shooting extreme closeups (A6xx cams; 7.3mm focal length) and snap the optimal series of frames (minimum number of) with continual/overlapping DOF. The output would be fed to CombineZM.

Started, but haven't finished because it would be tedious to calculate all the DOF permutations (for each Av setting). I checked dofmaster.com but their calculator doesn't extend to these ridiculously short (1cm-4cm) distances.

I plan to determine the DOF overlap for shots at various distances out to 6cm by eyeballing a series of 1mm-stepped test shots, and wind up with a script that steps through the optimal list" of fixed distances for f5.0 and/or f5.6

Reply   Reply with quote   Complain
Marty Too
Senior MemberPosts: 1,000
Like?
Re: Focus Bracketing?
In reply to Russel_Sprouts, Jun 29, 2007

I planned to use it for that same situation that you mention (A620) and also for times when I want to take a macro and can't see detail in the LCD and yet want several shots to compare and choose the best focus once I can see the results on the PC.

Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum MMy threads