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
savery999
From: United States
Posts: 31
Hello, how do I get an LED for AP1 to display?, I cant seem to figure this out.... this is my first LED for MSFS2020 so hopefully this should flow from here haha.

thanks in advance.

so far I have Autopilot 1 active selected on the simconnect selection and the value changes from 1 to 0 so I know its getting a signal from the sim?
Thanks, Steve Avery
2021-11-23 15:55
Avatar
savery999
From: United States
Posts: 31
I figured this out, use the sim variable and the comparison use

if current value >/= 1
set it to 1
else set it to 0

as you will find the flight sim value is 1 and then output value is 0 for some reason.

steve
Thanks, Steve Avery
2021-11-29 03:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I not understand this Syntax ....
iconsavery999:



if current value >/= 1
set it to 1
else set it to 0



Do you mean "Bigger or Equal" this will be >= ..... the / here makes no sense.

By the way..... WHAT would you like to do ?
Whats the possible Values that can occure..... And what should be the result ?

For a LED all greater then 0 means ON .... 1, 5, 99999999 ALL is greater 0 ( NOT Zero ) so LED is ON.

Means your Compare is not needed ! ( Cause it make 100% the same)

If you expect a other result..... E.g. that a Value of "1" must light a LED BUT a Value of 2,3,4 e.g. should be "0" ( LED OFF)
THEN your Compare is Wrong !
Good Luck !
2021-12-02 23:58
icon