Jump to content

Recommended Posts

Posted

Hi All.

I wanted to add a new device controller for the pinky switch on the DCS Bios. I noticed I must add a new entry within the Json file and then define the control in the lua script.

"HOTHAS_PINKY": {
							   "category": "Throttle",
						   "control_type": "selector",
							"description": "HOTHAS Pinky Switch Aft/Center/Forward",
							 "identifier": "HOTHAS_PINKY",
								 "inputs": [ {
											   "description": "switch to previous or next state",
												 "interface": "fixed_step"
										   }, {
											   "description": "set position",
												 "interface": "set_state",
												 "max_value": 2
										   } ],
					"momentary_positions": "none",
								"outputs": [ {
												   "address": 4358,
											   "description": "selector position",
													  "mask": 12,
												 "max_value": 2,
												  "shift_by": 20,
													"suffix": "",
													  "type": "integer"
										   } ],
					   "physical_variant": "limited_rotary"
				},

I could not find any documentation explaining it in a way I can understand. The code below shows what I have done, and i think the missing link is the first two parameters.

defineTumb("HOTHAS_PINKY", 37, 3003, 287, 1, {-1, 1}, nil, false, "Throttle", "HOTHAS Pinky Switch Aft/Center/Forward")

The number 37 seems to work like a "category or section in the cockpit" and the 3003 looks like the device/switch itself. I dont know where that is defined, nor how to get a list of all indexes.

Is there a lua command or somethign that I can run that will give me a list of all possible switches? How can I do that?

Thank you!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...