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!
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.
We all start at the begining point!
In 10 weeks you will lought about this posting cause then your still understand all this stuff and you fly with your own Cockpit !
About Carls list.... The right (Blue) part is Mobiflight Related... BUT the whole Document is based on ProSim. So its senseless for you !
For example the used Offset "5300" is defined by himself in the ProSim Settings. No other Aircraft ( like PMDG or the Stock B747 of FS2020) will goive you Data on that "5300" Adress. This only work for a ProSim that use the same internal Settings like Karl do !
Also the base logic can not be used "copy paste" overall. For example most Aircrafts NOT use a Press and Release for the MCP Buttons. If Button in Sim is Momentary then you can only use Press (Toggle) . So only in case Karl use a ProSim and make that special settings, there he will use this Press Release Stuff.... You will not do this in your B747 !
In easy words.... It´s good to learn from a guide like the linked.... But then you need to use 1:1 the same Setup (ProSim, P3D). If you work with a PMDG then you need a guide that use the PMDG specific Logics.... And if you use a B747 you need again a guide that is based on FS2020 and the B747 !
Thats why i said... Its important ( with the time) to learn the basic elements.... Not Copy "5300" cause KArl use it.... the Key is to understand why he use 5300 and to know why "5300" not work for the 747 now!
But not get scarred..... This is no big deal.... After some days you pretty fast gain experience!
**************
Please tryout the FS2020 Variables and Events.
If you struggle.... Request here again. Then we find a solution for you.
At first.... I´m Sorry !
I mix up 2 topics ( awnserd a other user shortly before who had a 3 way ON-OFF-ON Switch). Sorry for confusing you!!
This show me definitly that it is a ON-ON switch !
I not know if its "latching" or "momentary" .... But we can see from this Picture that each position of this switch have a own Pin. So it must be a ON-ON
About Switch Logic:
Switch need a wire from your used Pin on Mega ( e.g. Button on Pin 10) TO the Switch lower LEft Pin ( On Picture named "Connected when pressed" )
Also you need a GRD for the Switch..... Here Wire goes from Switch Lower Right Pin (named "Button Common" ) TO a GRD Pin on the Mega.
You can in theory also create a second Button Device on the MEga and wire it to Lower Middle Pin (in Picture labeld "Connected when released" )
BUT as i said... We not need a ON-ON. We can handle it already with the one line.
****************
About LED:
HERE we got the Problem :
no matter what i do . is always On.... wire from volts to 5v ( with resistor) , second wire ( just below) to pin ( 47 in my case).. and shared gdn connectors to GND.. 3 wires.. that's all..
You can NOT wire a LED to 5V !!! Then its always ON!!
You must wire a LED to a Arduino Pin and define THERE a LED Output Device!
So E.g. Pin 12 on Mega is set as "LED" ...: Wire From there ( via a resistor) to LED Input on the Switch ( Named (LED 3V) on the Picture.
And a GRD for the LED ( From Switch Pin "LED GRD" ) to Mega GRD
(As you said.... You can share these 2 GRD ( From Input Switch and LED together... Both to same GRD Pin on Mega)
*************
Summary:
You need in Mobiflight TWO Devices.... 1x Button Input and 1x LED Output.
And you need 2 Config Lines....
One INPUT Config that detect Switch command and send it to the Sim....
AND
One Output Config that read e.g. the Status of Sim Autopilot and controll your LED to ON or OFF in relation if the Virtual AP is On or Off.