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
Banzai
From: France
Posts: 90
hi
i need help to configure my mcp boeing 737
i want to show the "8888" message on display (crs,speed,hdg,alt,vs,crs)
when the test light toggle is on.
i use the placeholder tool with transform to do this
i create an outout config to read my offset"mcp_test"
to show the "8888" the offset set to 1
and to show "blank" the offset set to 2



thats works for show "8888" on each display but how can i do to config the blank transition,?
because it is always the true value which is displayed when offset set to 2
[Last edited by Banzai, 2020-10-03 22:57]
2020-10-03 22:51
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
This is a little "tricky" cause Blank means "Spaces" ..... And Spaces are not a INTEGER Value.... So it is not directly possible in the Transform !
The result of the transform MUST be a integer Value......

Step 1: You need a ELSE IF .

Currently you say if(#=1,8888,$) ...... So its logical if #=2 it will simply execute the "ELSE" cause its not 1 .... Means it show "$" that is the current value of that Config.
In Theory we like to say IF #=1 then show 8888 .... ELSEIF #=2 then Show "4x Space".... ELSE show current Offset Value.....
Syntax would be if(#=1,8888,if(#=2,' ',$)) BUT..... THIS will NOT work couse Mobiflight not allow us to use a Character in the Result.!!

Solution.... You need additional the COMPARE Tool.

So....
Step 1: You need a "unlogical" value that never can happen on the Offset in Normal condition..... For example in the HEading we can use "999" cause heading is only 0-359
In Transform we say.... if(#=1,8888,if(#=2,999,$)) .
Means it set to 8888 if #=1 and it set to 999 if #=2.
In Compare wi fanaly say.... If Value = 999 then "Multiple Space Buttons in number of diggits to be blanked" ELSE $

Result:
If #1 it set to 8888 ..... If #2 it set to 999 and compare set to blanks..... If ' is not 1 or 2 it show Currenct Value $
Good Luck !
2020-10-03 23:39
Avatar
Banzai
From: France
Posts: 90
hi
thanks for your help ,thats works for all display :thumbup:
exept the "altitude" config i have allready a comparaison config
2020-10-04 13:00
Avatar
Banzai
From: France
Posts: 90
hi
if there a soluce for setup the display "altitude"
because i have already a comparaison in the alt config a :confused:
i test with a new output device with the same offset and display but that not work

that is in compare tool

[Last edited by Banzai, 2020-10-11 19:31]
2020-10-11 19:23
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Yes it is..... You can do it in multiple ways.

You can include the current compare in the transform if you like.

For example transform is : if(#=1,88888,if(#=2,999,if($<0,$+65536,$)))
So the current compare is already included now in the transform and you got it free for the Blanking.
(Note: i not know if you use 999 here or the numbers of the 88888 ..... See this formula just like a blueprint for a 3way "IF-ElseIF-ElseIF-ELSE" and rework it as you need it)
**************

A OTHER WAY is to use the Compare with a additional formula.
Say in Compare IF Value = 999 ---- THEN "Spaces" ---- ELSE: if($<0,$+65536,$)


There are also some other ways.... But i think thats the 2 most easy ones.
Good Luck !
2020-10-13 00:20
Avatar
Faa
Posts: 1
Buenos días tengo una pregunta estoy en fabricacion de un radio panel para cessna 172 y he conectado los módulos max 7219 tengo 12 en total para todo el panel y lo que ocurre es que los hecho a funcionar y avese no funcionan o hacen cualquier cosa tengo una placa arduino mega 2560 r3 hay alguna limitación con el tema de voltaje con tantos display de 8 segmentos espero me puedan guiar muchas gracias y saludos
2020-10-13 15:47
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconFaa:

Buenos días tengo una pregunta estoy en fabricacion de un radio panel para cessna 172 y he conectado los módulos max 7219 tengo 12 en total para todo el panel y lo que ocurre es que los hecho a funcionar y avese no funcionan o hacen cualquier cosa tengo una placa arduino mega 2560 r3 hay alguna limitación con el tema de voltaje con tantos display de 8 segmentos espero me puedan guiar muchas gracias y saludos



TRANSLATION by Google:
iconQuote:


Good morning I have a question I am in the manufacture of a radio panel for cessna 172 and I have connected the max 7219 modules I have 12 in total for the entire panel and what happens is that those made to work and sometimes they do not work or do anything I have one arduino mega 2560 r3 board there is some limitation with the voltage issue with so many 8 segment displays I hope you can guide me thank you very much and greetings




Hi Please accept only ENGLISH and GERMAN is supported. If you not speak those language please translate your request !

About question:
Use forum Search for "Max7219" There we still explane 1000 times that you need to power Max Tubes in a chain via personal 5v OR remove the diode.
If i missunderstand the translation please explane more detailed your problem !
Good Luck !
2020-10-13 23:22
Avatar
Banzai
From: France
Posts: 90
hi
I use the Compare with a additional formula "if($<0,$+65536,$)" and work fine thanks:thumbup:
but another last request for the vertical speed function the problem is i do make two blank option
one for the blank display when the vs is at zero
and one when the transition with "8888" and blank when i test light with toggle
i test transform :if(#=1,8888,if(#=2,999,if($=0,$,$)))
that work but only when the vs is blank ,otherwise it shows the true value which is entered in the vertical speed, and when I test the lights its show "8888" and " the true value" ($)

I hope to have been clear
2020-10-14 13:15
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Not always say "This is my last question" ;)
You will have always again new questions and thats fully OK.... Simply ask if you get stuck and we try to help you !

Current Problem:

iconBanzai:

hi
i test transform :if(#=1,8888,if(#=2,999,if($=0,$,$)))
that work but only when the vs is blank ,otherwise it shows the true value which is entered in the vertical speed, and when I test the lights its show "8888" and " the true value" ($)



You got a logical issue in the last IF .....
if($=0,$,$) makes no sense ! You say if value of Config is Zero THEN show current value$ ELSE ( So if $ is not zero) it ALSO should show current Value$
In simple words.... It show $ at all time here cause both conditions ( true and false) execute the same result !


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

Solution: This can be done with a third IF like you try or it can be done by inlcuding it with a OR Command in the "999" Condition already.

Way1: 3rd condition : if(#=1,8888,if(#=2,999,if($=0,999,$)))
Now we say.... If current Value is 0 it should transform to 999 ( So the same we do with the # condition and then the compare blank it finaly, too.

Way2: OR statement : if(#=1,8888,if(#=2||$=0,999,$))
Here we use || (symbol for logical OR.... Left of the Y key)
We say.... IF # is 1 then show 8888 ..... "Whatever #=2 -OR- Current Value = 0" then show 999 ..... ELSE show always current value.

I hope you see.... Again lots of posibilitys. You should looking forward to a guide from Stephan. He currently write it and it include all formula hints and tipps.
Good Luck !
2020-10-14 17:38
Avatar
Banzai
From: France
Posts: 90
Hi
I wanted to say my last question for today of course:)

I tested both and it works wonderfully:thumbup:
I try to understand the logic of these formula but not obvious,
but it's true logic when have these clear explanations.
I see that there is a multiple way to solve a problem!
thanks to you
2020-10-14 18:58
icon