Is there any way to automatically load the ADTG config?

Started by Whr, April 28, 2021, 04:50:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Whr

Is there a way to automatically load the ADTG config?For example, automatic loading is done through Lua scripts.Turning off the ADTG gain via ADTG registers to get the lowest ISO for shooting is very helpful for my older camera. It would be even better if it could configure it with a one-click load via a script. I hope to get some ideas to achieve purpose. Or has anyone tried?







500D 1.1.1 & X-T3

a1ex

Other than recording the sequence of button presses required to achieve the config... probably not. The ADTG menus are generated dynamically, as the registers are discovered; internally, they are an array of menu entries with the same name. As such, they are not accessible from Lua's menu API (at least, not at the time of writing).

The easiest way is to hardcode the preset directly in adtg_gui.c. There are a few examples in the source code, including a 3K preset for 5D3.

Whr

Maybe I could have done the configuration a simpler way, simulating the keystrokes with the press(key) parameter in the Lua API.
Where can I find the table comparison for the camera keys?thx.
Even though it is a "blind" method, I think it is effective.
500D 1.1.1 & X-T3

Whr

Quote from: a1ex on April 28, 2021, 08:05:16 PM
Other than recording the sequence of button presses required to achieve the config... probably not. The ADTG menus are generated dynamically, as the registers are discovered; internally, they are an array of menu entries with the same name. As such, they are not accessible from Lua's menu API (at least, not at the time of writing).

The easiest way is to hardcode the preset directly in adtg_gui.c. There are a few examples in the source code, including a 3K preset for 5D3.

Hello a1ex, unfortunately I don't have the basis of C language.When I was studying the example of 5D3, I didn't know how to replace the register address of 5D3 with the address of 500D.Is there a solution?
500D 1.1.1 & X-T3