|
126 C H A P T E R 5 Scriptings = get_shooting uBasics = get_shooting() LuaReturns 1 resp. true if the camera is currently shooting or has prepared for shootingand is ready to shoot.x = get_propset uBasicx = get_propset() LuaReturns the type of operating system: 1 = VxWorks, 2 = DryOS.v = get_prop p uBasicv = get_prop(p) Luaset_prop p,v uBasicset_prop(p,v) LuaRetrieves and sets properties (section 5.6).b = get_vbatt uBasicb = get_vbatt() LuaReturns the battery voltage into variable b (in milliVolts).t = get_temperature p uBasict = get_temperature(p) LuaReturns a temperature in degrees Celsius. The variable p specifies the probe:0 = optics, 1 = CCD, 2 = battery.u = get_usb_power uBasicu = get_usb_power() LuaSets variable u to a value > 0 if the camera detects a signal on the USB V+ pin. Thereturned value is the duration of the signal in units of 10 milliseconds. Typically, thiscommand is used to implement advanced remote control functions (section 5.7.5).exit_alt uBasicexit_alt() LuaLeaves the CHDK-specific -mode (chapter 4). Please note that leaving the -mode interrupts script execution. The script execution is resumed when the camerareturns to -mode.shut_down uBasicshut_down() LuaThe 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 systemwill crash! PreviousNext |