supplierdeeply

Setting CHDK Remote Parameters in a script

  • 1 Replies
  • 670 Views
Setting CHDK Remote Parameters in a script
« on: 25 / February / 2016, 12:34:04 »
Advertisements
Hi,

I'd like to write a script that sets and unsets the following CHDK parameters:

CHDK Settings -> Remote Parameters -> Enable Remote: ON
CHDK Settings -> Remote Parameters -> Switch Type: OnePush
CHDK Settings -> Remote Parameters -> Control Mode:  Normal

I switch back and forth between software control, so setting/unsettling these each time is a pain. I can't seem to find anything in all the pages of scripting commands that allows me to set these parameters.  Any help would be greatly appreciated. Thanks!

*

Offline msl

  • *****
  • 1237
  • A720 IS, SX220 HS 1.01a
    • CHDK inside
Re: Setting CHDK Remote Parameters in a script
« Reply #1 on: 25 / February / 2016, 14:33:48 »
You can use get/set_config_value() for that. It's not quite easy to figure out the IDs. You must study conf.c from the CHDK source code. Or you use a generated lua library:
Code: [Select]
core=require("gen/cnf_core")
set_config_value(core.remote_enable, 1)
set_config_value(core.remote_switch_type, 1)
set_config_value(core.remote_control_mode, 1)

There is also a script for storing different configurations: https://chdk.setepontos.com/index.php?topic=10894.0

msl
German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
Note: SDM violates the GPL rules!

 

Related Topics