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.