Download uBASIC User Guide

Transcript
Usage:
get_time 0 (returns second)
1 (minute)
2 (hour)
3 (day)
4 (month)
5 (year)
get_av/tv, set_av/tv, etc
There are several commands for getting and setting the aperture and the speed. They only
work in Manual mode (well you can change the settings in any mode, but they are effective in
manual mode, probably also in Av and Tv modes). There’s a test script for these commands
in the “user written scripts”.
The commands are:
get_av target
get_tv target
set_av val
set_av_rel val
set_tv val
set_tv_rel val
Target is the name of a variable (a, b, … z), val is an expression.
An example of setting and printing the values:
:set_get
set_av c
set_tv b
print “AV,TV set to”,c,b
sleep 1000
click “shoot_half”
sleep 100
get_av n
get_tv m
print “AV,TV got”,n,m
end
You can change the settings relative to existing values (this might make bracketing easier and
faster):
rem increase light (1/3+1/3 steps)
set_tv_rel 0-1
set_av_rel 0-1
shoot
end
The Av and Tv settings provide the following actual values; roughly ±1 setting means ±1/3 EV
change (CHDK Build 119 remapped values):
D:\Downloads\Software\CHDK\UBASIC_User_Guide_D0_5.doc
Page 29 of 65