EasyManua.ls Logo

Canon Camera - Low-Level Commands (Lua Only)

Canon Camera
257 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
126 CHAPTER 5 Scripting
s = get_shooting uBasic
s = get_shooting() Lua
Returns 1 resp. true if the camera is currently shooting or has prepared for shooting
and is ready to shoot.
x = get_propset uBasic
x = get_propset() Lua
Returns the type of operating system: 1 = VxWorks, 2 = DryOS.
v = get_prop p uBasic
v = get_prop(p) Lua
set_prop p,v uBasic
set_prop(p,v) Lua
Retrieves and sets properties (section 5.6).
b = get_vbatt uBasic
b = get_vbatt() Lua
Returns the battery voltage into variable b (in milliVolts).
t = get_temperature p uBasic
t = get_temperature(p) Lua
Returns a temperature in degrees Celsius. The variable p specifies the probe:
0 = optics, 1 = CCD, 2 = battery.
u = get_usb_power uBasic
u = get_usb_power() Lua
Sets variable u to a value > 0 if the camera detects a signal on the USB V+ pin. The
returned value is the duration of the signal in units of 10 milliseconds. Typically, this
command is used to implement advanced remote control functions (section 5.7.5).
exit_alt uBasic
exit_alt() Lua
Leaves the CHDK-specific <ALT>-mode (chapter 4). Please note that leaving the <ALT>-
mode interrupts script execution. The script execution is resumed when the camera
returns to <ALT>-mode.
shut_down uBasic
shut_down() Lua
The camera is switched off as soon as possible.
5.5.11 Low-level commands (Lua only)
value = peek(address)
Fetches memory content from the specified address.
Note: If the address is outside the address range of the camera, the operating system
will crash!

Table of Contents

Related product manuals