New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to obtain codes for example DED ENTR (F16) = 3016? #41
Comments
Aha, found this that lists most of the device IDs and also the codes ... https://github.com/dcs-bios/module-f-16c-50/blob/master/F-16C_50.lua Still curious where this was obtained... I want to use your code to toggle switches such as the battery between the three states, 0=0ff, 1=batt, 2=main generator... |
Another question, how to turn a knob via script? I have managed to set the IFF to normal like this: But how would I set the HMCS turnable knob to say 50% brightness via similar JSONObject?
Thank you |
Hi Ian, what you're attempting does not feel like a great fit for The Way
(IMHO). Have you rejected what
https://github.com/HeliosVirtualCockpit/Helios/releases/latest can do for
you?
…On Tue, 23 Aug 2022 at 12:41, iancoetzer ***@***.***> wrote:
Another question, how to turn a knob via script?
I have managed to set the IFF to normal like this:
//IFF, set to Normal
commandArray.put(new JSONObject().put("device", "35").put("code",
"3002").put("delay", "0").put("activate", "0.3")); //-1, 0, 1
But how would I set the HMCS turnable knob to say 50% brightness via
similar JSONObject?
//HMCS Knob, how to turn? This does not work.
commandArray.put(new JSONObject().put("device", "17").put("code",
"3022").put("delay", "0").put("activate", "50")); //-1, 0, 1
Thank you
—
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AENLAGFUDNEII4I5RFIXPDTV2S2EZANCNFSM57K4TLPQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi, the codes are from that DCS BIOS repo as you found out. For dials, I am not too sure but it should be similar to how the IFF switch is. By the way, if you are trying to make a startup sequence, best way is to change the built in DCS autostart lua file. I made my own version of that, the way I wanted it. |
Hi, thank you for all the replies. I have just achieved the desired result with 'DCSTheWay'. `
|
Hi
Where do you obtain the codes?
For example the DED ENTR (F16) you have as code 3016.
When I look in the clickabledata.lua of the F16, the DED ENTR (F16) button code is 178?
Thank you.
I want to add additional buttons to your Java app to toggle switches such as auto pilot / main battery on/off , landing gear up down etc.
The text was updated successfully, but these errors were encountered: