5.5 CHDK commands
121
set_zoom_rel d
uBasic
set_zoom_rel(d)
Lua
Sets increments or decrements of the current zoom step.
set_zoom_speed s
uBasic
set_zoom_speed(s)
Lua
Sets the zoom speed between 5 and 100 percent. This does nothing for A-series
cameras.
5.5.5 Flash-related commands
f = get_flash_mode
uBasic
f = get_flash_mode()
Lua
Returns the flash mode: 0 = auto, 1 = on, 2 = off.
r = get_flash_ready
uBasic
r = get_flash_ready()
Lua
Indicates that the flash is ready with a value of 1/
true
.
5.5.6 Image-related
commands
get_quality q
uBasic
q = get_quality()
Lua
Retrieves and sets the current image quality setting (0 = Superfine, 1 = Fine,
2 = Normal).
get_resolution q
uBasic
q = get_resolution()
Lua
Retrieves and sets the current image resolution (0 = L, 1 = M1, 2 = M2, 3 = M3, 4 = S,
5 = RAW (on G9), 6 = Postcard, 8 = W).
o = get_orientation_sensor
uBasic
o = get_orientation_sensor()
Lua
Returns the camera orientation (portrait, landscape) in degrees.
Summary of Contents for Camera
Page 1: ......
Page 2: ...The Canon Camera Hackers Manual ...
Page 3: ......
Page 4: ...Berthold Daum The Canon Camera Hackers Manual Teach Your Camera New Tricks ...
Page 19: ...10 CH APTER 2 Cameras and Operating Systems ...
Page 25: ...16 CH APTER 3 ...
Page 85: ...76 CH APTER 4 Teach Your Camera New Tricks ...
Page 213: ...204 CH APTER 6 ...
Page 253: ...244 AP PENDIX ...