*** Moved from User Contributions sub-forum to FSUIPC7 support sub-forum ***
Hello!
I,m trying to make a small checklist program for MSFS 2020 using FSUIPC with Python. I have a small bit of test code just to see if it will work, and when I run the output data from the sim is off.
Python Test Code:
---------------------------
from fsuipc import FSUIPC
with FSUIPC() as fsuipc:
prepared = fsuipc.prepare_data([
(0x02BC, "l"), # Airspeed Indicated
(0x31E4, "l"), # Radio Altitude
(0x0020, "l") # Altitude
], True)
while True:
AI, RA, ALT = prepared.read()
print(f"Airspeed Indicated: {AI}")
print(f"Radio Altitude: {RA}")
print(f"Altitude: {ALT}")
input("Press ENTER to read again")
-----------------------------
The data I get back, just sitting on the runway with parking brakes on is the following.
Airspeed Indicated: 1190
Radio Altitude: 17179936437
Altitude: 6150855250518568484
Press ENTER to read again
-----------------------------
I was if anyone has any experience in this area. I'm so new with FSUIPC, I'm just trying to find out where to start. I have python down fairly well, I just need the right data.
One more last question...
Can FSUIPC determine what type of a COM1 frequency it is tuned to? Like 127.30 is Approach and 128.25 is a Center frequency.
Thanks!
~~~ Bill