MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
jackgames1232
Posts: 1
Hi, i have managed to find the variable for the ir and adir led to indicate if it is on/off, however it does the opposite, so when the button is on, my led indicated as if it was off, i wondered if there is something i could do to flip the led action?
If that makes sense any help would be great thanks
2021-12-15 22:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Without deeper view i can not tell you what is wrong here..... So if the "Offset" or the "Variable" is simply wrong or if you did a mistake in the Config syntax.

Basically.....
A LED is ON if the "Output Value" of Mobiflight is NOT 0 ..... So "0" ZEro means OFF .... Every other Value means ON.

To find out..... Please check the Mobiflight Connector Window..... On Output Tab observe the Collumn right of your Config line.... FSUIPC Value means the raw Value we read from the Sim..... Output Value means the Value we "export" to the Device ( LED in your case).

May you see a issue here ! Or you can see/understand why the sim e.g. gives you a "0" when it should be ON and a "1" if it should be OFF. (Can happen on Multi Switches)


Solution:
Use the COMPARE Tab or a Formula in the Transform Line !

E.g. If LED must be ON aslong Raw data is "0" and OFF aslong raw data is "1" or greater ....
Then say Compare : If Value = 0 THEN 1 ELSE 0
Or use a formula in transform like if($=0,1,0)

In easy words.... You must know what you expect..... You must figure out how the raw data work..... And you finally tell mobiflight how it should "change" the Value.
Good Luck !
2021-12-16 01:39
icon