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
WesternGlobal
Posts: 7
Hello everyone :)
I'm new to this field and wanted to ask if any of you have had any experience with the PMDG B777 MCP displays. I have an Arduino Mega and four LED 7-segment displays. With these Arduino I would like to read the values of the AutoPilot and then display them on the 7-segment displays.
But I only found instructions according the PMDG B737,so I wanted to ask here if theres any knowledge about this theme. Also all the offsets with the different data types confuse me a bit. . .:confused:
If something isn`t clear out of my description, feel free to ask; I am grateful about every help...

THX and Best Regards
WG
2020-03-04 08:58
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

About the basic stuff.....

There is no alternate here. You MUST learn and understand the basics by yourself..... For example what kind of Data exist ( INT, FLT, STRG )... What a Offset is.... How HexaDecimal System work .... Basic Binary Logics.... Math Functions and logical Operators.
Without this basic knoledge it not possible to handle Mobiflight or every other Cockpit Building System.

See it like a other hobby.... If you like to build Model Ships..... You also must learn yourelf how to use the glue, how to handle a saw and so on..... For Cockpitbuilding you need a basic knowledge about Math and programming logics finaly.

Summary... We can guide you and we will awnser your questions..... But please not expect a premade Download solution..... The complete Settings and building of your config must be finaly done by youreself !
But GOOD NEWS..... Evrybody here have to learn this.... done it and finaly build there cockpits..... Its not so hard as it sounds at beginning..... With a bit logical thinking you undertand this stuff in less then 2 weeks.


***********
About B777

This is nearly simmular to B737 (Both are from PMDG).... BUT the Difference are the Offsetnumbers !
In your FSUIPC subfolder you will find for Both AddOns a List..... There you see.... B777 got also Offsets for every Display but the adreses are just different.
The Function of the Displays is also nearly the same.... With some little differences..... But you will see this when you startup working on it.

Just ask if you need more help !
Good Luck !
2020-03-04 10:18
Avatar
WesternGlobal
Posts: 7
Hello
Thanks for your help...:)
I took to heart what you advised me and behold; it worked except for 2 things.
The two things are the Speed/LNAV and the V/S display.

First to the V/S Speed: I have everything programmed like the B737NGX (logically with other Offset-Values). When I select VS, the Display shows the correct value, but when I press the ALT-HOLD button, the V/S-Display didn`t extinguish. Whats the problem here?

The Speed-Display: I also have programmed everything like in the description, but when LNAV/VNAV is selected, the Display still shows the Airspeed. I can`t explain that to myself...

Thanks for further help :thumbup:

Best Regards
WesternGlobal
2020-03-10 11:55
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Again.

The Problem here is.... Every AddOn Puplisher do its own system. ... PMDG is basicly fine, BUT it have one big disadvantage ! Offsets NOT show us the "live" state of the Display in Sim.... They show us just the Status of the Function !

For example the Parking Brake Status LED..... This Offset show "1" aslong Parking Brake is Set and it shows "0" if Brake is released..... BUT it not include Logic for Battery Status.
So if your Master Battery Switch is OFF then all LED´s must be also OFF.... But the Offset of the Parking Brake will be still "1" cause the Brake is simply Set and thats the only thing this Offset can tell us.

Technical the Same happens in your Displays....
If LNAV/VNAV is active then the SPD Display should be Blank..... But like in Parking Brake example..... The Offset that show us the Speed still include the data of the current selcted Speed (Whatever it is no longer showed in the virtual MCP) .
Same with VS..... Here the Display must be blank aslong Funktion is not active.... BUT the Offet that show us current rate will include data at all time.

************

To Solve this you need COMPARE and PRECONDITIONS ( and if you like it more professional PLACEHOLDERS )

In Compare we can use "Spaces" instead of Values .... So we can Say " IF Current Offet Value is X ( For example 0 ) THEN show "Space Space Space" instead of Offset Value"
This is helpfull in VS Display.... Cause in B737 it swap to a high negative Value aslong it is normaly blank ( -18.000 or so) .... So you can say in Compare " IF Value is below -10000 THEN "5 times Spacebutton" " ..... So it will Blank the Display in that case.

With Precondition we can enable and disable a Config in case of a Indicator.
In your Case you would build TWO Configs for the Display.... One Config Show the Value ( like SPD) The Other Config show Always Spaces (Compare tab again) at ALL time.
Finaly you got a 3rd Config that red the Indicator .... In B777 it should be "Offset 6544 1 BYTE MCP_IASBlank - Boolean"
Now you say in First Config that show Value " Only work aslong 3rd Config ( that read Indicator 6544) is 0 "
In Second Config that show Spaces for Blank you say " Only work aslong 3rd Config is 1 "
You see.... Now the Real Config and the Blank Config do there work.... Baed on the Value of the Blank Indicator Offset.


Finaly with "Placeholders" we can do all this Stuff much more "easy"..... For example Precondition within only ONE Config
But it need a bit of advanced programming knowledge.


Please use Forum Search.... Maby "MCP B737" You will see in my older guides the system. ( Including Compare and Precondition)
All is explaned multiple times.... But if you not find a solution please ask here again.... Then i will write it again for you... Also with Placeholders if you request for it !
Good Luck !
2020-03-10 13:16
Avatar
WesternGlobal
Posts: 7
Hello Again...
Since your last reply, i`m trying to fix my two problems (VS and IAS/Mach), with no sucess:(
First the VS-Speed


I have tryied that with this template but with the Values of the B777.

Vert Speed:
Offset 654A, 2 Bytes INT Multi 1 , 5 Stellen, Left Padding JA SPACE

VS BLANK
Offset 6532 1 Byte INT , Multi 1 , 5 Stellen Left Padding NEIN (Diesen Eintrag für das gleiche Display und die gleichen Stellen wie VS)
Vergleich: Wenn Wert Ist 1 " =1" dann setze 5 Leerzeichen "Bei Dann setze einfach 5 mal Space drücken"
Vorbedingung Nur Anwenden Wenn Config Eintrag von VS (Name hast du selber Bestimmt) Kleiner als Minus 10000 "< -10000"
Weiterhin muss im Original VS Configeintrag folgendes eingefügt werden ....
Vergleich : Wie Oben beschrieben für die Nuller .... Wenn Wert ist Null " =0 " Dann setze 4 Nuller " 0000" Sonst Wert "$"
Vorbedingung : Nur Anwenden wenn 2. "VS BLANK" Configeinrag gleich Null ist "=0"


With this way, i have no sucess. The VS is working (with the correct values) but when i press the alt hold button, (Cockpit) the VS Display didn`t extingiuish. It still shows the value, which has been selected before. Is there a chance to fix that?

Thx very much
Western Global
2020-03-21 11:49
Avatar
WesternGlobal
Posts: 7
Hello Again
The second task is the IAS/Mach:
I also have tryied exactly what the description has told me (of course with the Values of the PMDG B777)


IAS:
Offset 6540 4 Byte Float Multi 1 , 3 Stellen Left Padding NEIN
Vorbedingung : (Dafür musst du erst den folgenden Eintrag erstellt haben) Nur Anwenden wenn MACH Configeintrag Größer als 1000 " >1000"

MACH:
Offset 6540 4 Byte Float Multi 1000 (TAUSEND) , 3 Stellen DEZIMALPUNKT an der Linken der 3 Stellen , Left Padding JA - SPACE ( Hier das gleiche Display und Stellen wie bei IAS)
Vergleich Wenn Wert Größer Null ">0" dann setze Runden Klammer - Wert durch 10 - Komma Null - Klammer " Round($/10,0) " Hiermit wird der Kommawert des Offsets in eine Gerundete lesbare Zahl auf das Display gebracht !
Vorbedingung : Nur Anwenden wenn IAS Configeintrag kleiner als 10 "< 10" .

Jetzt die Blank Funktion das das Display Leer ist wenn VNAV Angeschalten wird....
1. Eintrag für Blank:
Offset 6544 1Byte INT Multi 1 3 Stellen (Falls du auch das Over Underspeed Willst VIER Stellen) Left Padding JA SPACE
Als Display und Stellen das gleiche wie bei IAS Mach verwenden. (Bei 4 Stellen zusätzlich die Display Stelle nehmen wo die Overspeed Warnung gezeigt werden soll)
Vergleich: Wenn Wert ist 1 "=1" dann setze 4 Leerzeichen "Bei Dann setze einfach 4 mal Space drücken"
Vorbedingung : Nur Anwenden wenn "Pseudo Blank Eintrag" (Den ich gleich erkläre) Wert ist 1 "=1"

2. Eintrag für "Pseudo Blank"
Offset 6544 1Byte INT Multi 1 Keine Displayzuweisung, Keine Vorbedingung oder Vergleich. (Dieser Wert dient nur für einen Verlgiech bei den anderen Einträgen)

Zu guter Letzt musst du nun noch bei den Originalen IAS und bei dem MACH Configeintrag eine zweite Vorbedingung einfügen....
Jeweils zu der bestehenden Vorbedingung fügst du bei BEIDEN mit dem Operator "AND" noch ein ... Nur Ausführen wenn "Pseudo Blank" ist 0 "=0"

When i have done that, the diplay remain blank. Is there also a solution?

Thx very much
Western Global
2020-03-21 12:03
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Same as i write in other Topic 5 mins ago.....

This guide is pretty old and outdated in case of new features or missing elements like Multiply field today.
The basic Logic already work if you know how to compile it in current interface.
Whatever today i would make this systems much more easy.

i can not garantee if i find a spot.... But in case of " Official Corona - Ban of leave Home" here in Germany maby i can rework it within the next weeks! .
Good Luck !
2020-03-21 16:37
icon