Jump to content

How to obtain the device ID and code for the Rudder, Pitch and Roll?


Recommended Posts

Posted (edited)

Hi

Where can I obtain the device ID and code so that I can control the Rudder, Pitch and Roll?

I am currently using a script below to treat - for example - the HUD brigthness knob as a potentiometer - so that I can turn the brightness to 50%. I want to do the same with the Pitch, Roll and Rudder but cannot find the correct device ID and code?

 

JSONArray commandArray = new JSONArray();
       
//HMCS Knob, turned to 50% brightness (0.5)  - ASK ground crew to install if not already done!!!
commandArray.put(new JSONObject().put("device", "2").put("code", "3001").put("delay", "0").put("activate", "0.5").put("delay", "20"));  

 

This is then sent to DCS

        try {
            Socket socket = new Socket("127.0.0.1", 42070);
            PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
            out.println(toSend);
            socket.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

which in turn is interpreted by a script that makes use of the performClickableAction

GetDevice(device):performClickableAction(code, activate)
Edited by warford

 i7-11800H @ 2.30GH | 16Gb 3200MHz | GeForce RTX 3060 | Samsung 1TB SSD | KINGSTON 520GB SSD

  • Recently Browsing   0 members

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