Seahawk240 / Microsoft-FS2020-To-Arduino

A Simple Program which enables communication between a Serial Device (like an Arduino) and the Flight Simulator 2020
48 stars 7 forks source link

Custom Import Transponder state problem... #47

Open aeroelectrolight opened 3 years ago

aeroelectrolight commented 3 years ago

Hello, first of all thanks for your software which is really great for connecting arduino to msfs. I have a problem to make the variable work: "Transponder state" with the "custom imports". According to the documentation: https://docs.flightsimulator.com/html/index.htm#t=Programming_Tools%2FSimVars%2FAircraft_Simulation_Variables.htm, it is settable TRANSPONDER STATE | Transponder State | Enum: 0 = Off 1 = Standby 2 = Test 3 = On 4 = Alt 5 = Ground. I tried to send from my arduino a variable in the form: @ 10000 / = TRANSPONDER_STATE; VALUE $ by modifying VALUE between 0 and 5 but it does not work! Has anyone ever had this concern? Or am I doing it wrong? thanks in advance Regards Ludo

Seahawk240 commented 2 years ago

Hello Ludo, please excuse my late response! In the moment it is not possible to set variables directly within FS2020TA, although this feature is planned for the future. Normally input events or event ids exist which manipulate the simulation variables. But with the transponder state, this is not the case.

The other functions of the Transponder can be changed by standard input events, found here https://docs.flightsimulator.com/html/index.htm#t=Programming_Tools%2FSimVars%2FEvent_IDs.htm just search for XPNDR.

I hope to add the feature you need in october when I'm through with my final university exams.

Greetings and all the best Matthias

aeroelectrolight commented 2 years ago

Hello Matthias, thank you very much for your reply. I actually implemented the gection of the transponder with a 7-segment display. It works with standard input events without problem. I only have state management left to implement. I am happy to know that this can be done in the future. Good luck with your final exams. Thanks again. Regards Ludo