MoppleTheWhale42 Posted June 12, 2024 Posted June 12, 2024 Hi, I am trying to set the main mode of ARC210 (A-10CII) via clickable action. The master knob has device id 55 and 3043. My problem is, that whenever I call performClickableAction the knob does not rotate into the next clockwise or counter clockwise position, but rotates left or right to the very left, resp. very right position. What am I doing wrong? How can I programmatically set the knob into a specific position respectively mode? thank you Mopple
Solution Rudel_chw Posted June 12, 2024 Solution Posted June 12, 2024 46 minutes ago, MoppleTheWhale42 said: ... What am I doing wrong? How can I programmatically set the knob into a specific position respectively mode? Hi, You need to employ the VALUE field of the X:COCKPIT PERFORM CLICKEABLE ACTION. For this specific knob, the values used for each position are: 0: Off 0.1: TR G 0.2: TR 0.3: ADF ... etc I got these values from examining the clickeabledata.lua file of the A-10CII, the sentence defining this knob working is: elements["VHFUHF1P"] = multiposition_switch_limited(_("ARC-210, master switch") , devices.VHF_AM_RADIO, device_commands.Button_43, 551, 7, 0.1, nil, anim_speed_multipos_thumb, {135, -45}, {20, -55}) 551 is the Argument ID of this knob (you would use it on the X:COCKPIT ARGUMENT IN RANGE condition), the next value (7) indicates that this knob has 7 positions, and the next value (0.1) is the increment in value for these knob positions, so the first position is 0, the second is 0.1 and so on. Eduardo For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Recommended Posts