supplierdeeply

Switching dark frame substraction with set_config_value, how?

  • 11 Replies
  • 1622 Views
Switching dark frame substraction with set_config_value, how?
« on: 01 / January / 2014, 17:06:29 »
Advertisements
Hello, I am having trouble switching the dark frame subtraction flag with my scripts. It doesn't matter,

none of these:

set_config_value(169,3)
set_config_value(169,2)
set_config_value(169,1)
set_config_value(169,0)

changes it. Am I using the wrong values?

And also, maybe someone knows that: Is there a set_config_value() for switching "Show Misc Values" in the OSD too?

Has, btw., someone some advices where to get a list of possible values that can be passed to the function?

Thanks a lot!



Re: Switching dark frame substraction with set_config_value, how?
« Reply #1 on: 01 / January / 2014, 17:18:32 »
I think the value you are looking for has index 70  (conf.raw_nr).  You can also use 1039.

Using index 169 changes the bad pixel removal value.

But you could just use set_raw_nr() function instead.

To change "Show Misc Values" you need to use index 240.

You can find the index values in the ConfInfo conf_map_1_2[] structure in core/conf.c .  Its a bit tricky to use because it has structures for both the old config values,  the new config values and mapping between them all rolled  up in there.
« Last Edit: 01 / January / 2014, 17:31:36 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Switching dark frame substraction with set_config_value, how?
« Reply #2 on: 01 / January / 2014, 18:20:08 »
All right, thank you! Fixed it, but not the "show misc value". Value 240 brings up the debug infos. However it is not that important. The conf.c-file is all the time open in my editor :-)

Well, I can do that misc value thing on one camera manually then copy the CFG-Files to all cameras. Then I better won't touch it anymore. Thanks a lot!

Re: Switching dark frame substraction with set_config_value, how?
« Reply #3 on: 01 / January / 2014, 18:24:32 »
Also, the set_raw_nr() makes the cam turn off. Using set_config_value(70,x) works fine.


*

Offline reyalp

  • ******
  • 11335
Re: Switching dark frame substraction with set_config_value, how?
« Reply #4 on: 01 / January / 2014, 18:28:30 »
Also, the set_raw_nr() makes the cam turn off. Using set_config_value(70,x) works fine.
That is very strange, since it does basically the same thing.

Can you get a romlog form this crash? http://chdk.wikia.com/wiki/Debugging#Camera_crash_logs_.28romlog.29
Don't forget what the H stands for.

Re: Switching dark frame substraction with set_config_value, how?
« Reply #5 on: 01 / January / 2014, 18:52:26 »
Also, the set_raw_nr() makes the cam turn off. Using set_config_value(70,x) works fine.
As reyalp said,  would be good to get a ROMLOG of the crash.   Did you remember to put a parameter in the call?  set_raw_nr(1) or set_raw_nr(0) ?

Fixed it, but not the "show misc value". Value 240 brings up the debug infos.
Try index 15 - the other "show values" menu  ::)
« Last Edit: 01 / January / 2014, 18:54:20 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Switching dark frame substraction with set_config_value, how?
« Reply #6 on: 01 / January / 2014, 19:13:52 »
Okay, that did it,haven`t seen the 15. Sitting too long in front of the screen, having too many fingers on keyboard. Thanks you so much!

The ROMLOG, is that made automatically, like the dump on my Windows PC when having a BSOD?

Have to got to bed! Thanks!

*

Offline reyalp

  • ******
  • 11335
Re: Switching dark frame substraction with set_config_value, how?
« Reply #7 on: 01 / January / 2014, 19:14:52 »
Worth noting that in  CHDK 1.3, you can access config values by name http://chdk.setepontos.com/index.php?topic=9602.10
Don't forget what the H stands for.


*

Offline reyalp

  • ******
  • 11335
Re: Switching dark frame substraction with set_config_value, how?
« Reply #8 on: 01 / January / 2014, 19:16:53 »
The ROMLOG, is that made automatically, like the dump on my Windows PC when having a BSOD?
When the camera crashes, it saves the crash log in the cameras on-board flash (the "ROM" where the firmware is), somewhat like a windows BSOD dump.

The 'save romlog' menu option reads the most recent crash log from on-board flash and saves it to the SD card.
Don't forget what the H stands for.

Re: Switching dark frame substraction with set_config_value, how?
« Reply #9 on: 01 / January / 2014, 20:19:36 »
Worth noting that in  CHDK 1.3, you can access config values by name http://chdk.setepontos.com/index.php?topic=9602.10

WOW! Thats definitely worth knowing! But now I'm too lazy to revise everything, it's okay for know.

Here is a romlog, if you want to have a look. For me it's not that important, since the set_config_value()-method works. Don't know how many people have a SX200IS out there, it's not the newest cam.

 

Related Topics