Open jhl6 opened 3 days ago
Yes that is possible, you can either read a gauge value or read the Common Telemetry Data from the sim.
You can use the Bort Testing Tool to find values you are looking to read based on the module.
By looking in the under the CommonData
Module in BORT, we can find the IAS_US
which stands for Indicated Airspeed US (knots). You could also look at the airplane module such as FA-18C-hornet
def handle_airspeed_change(value):
print("Airspeed=", value)
bios.on("IAS_US", handle_airspeed_change)
Image of FA-18C-hornet
in bort
Image: Airspeed Indicated Knots CommonData
in bort
Hello PapiPlanes,
Thanks for your info. I'm new to python, but I'm getting there. I have a Question. What I like to do is that I can send the value out over a socket to etherent. Is this possible, and can you put me in the right direction. (maybe with a example)
Is it also possible to use your setup with c#?
With kind regards Jan Hein
1: Sending values over socket? Yes, there are plenty of examples online of creating a socket and sending data on it. Here is a video I found googling. You would just adapt the payload of the udp packet to include DCS related values from this library.
2: Using this in C#? You're best bet is to re-write this library in C#. There are ways to use python libraries, but not easily and it would not be a clean solution.
Hello,
Is it also possible to read values with the script? Example: Airspeed.
With kind regards, Jan Hein