P51‐D Detrola Frequency Selector - DCS-Skunkworks/dcs-bios GitHub Wiki

For more details on how to find information see P51‐D Generator Disconnect Switch first.

The frequency selector is a dial. The lua entry looks like this :

detrola_lua_entry

detrola_selector

detrola_argument_arg_window

The control's argument_id is 137.

Searching for that we find this entry in clickabledata.lua :

clickabldata_lua

Using same techniques as with the P51‐D Generator Disconnect Switch we find that :

  • argument_id is 137
  • device category ID is 26
  • command ID is 3004

An electrical control like this with a free range of motion between minimum and maximum is usually defined with definePotentiometer. What we need now is to find the range for this dial.

detrola_lua_entry

The first values to try with a new control are {0,1}. This doesn't work for all however and you need to figure out the limits by trial and error. Use CTRL Ref to see that the cockpit control moves to both ends of the range. If not then adjust either lower or higher value or both.