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
fjgaspar
Posts: 18
Hi,

I am building a customized radio / information panel and I don't know if it is possible to achieve, and how, the following:

I want to put a 20 x 4 LCD display that shows information. Below it, I want to place a momentary press button. When everything comes online, the display will show for example current altitude, current hdg, current vs and current cruise. When I press the button below, the LCD will show for example RPM, flaps position, Oil pressure and fuel left.

Is it possible to achieve this? How can be done?

Thanks
2020-11-11 12:15
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Yes it is.

Technical you can build 2 ( or also much more) instances of the display.....

The key is PRECONDITION !

You create a Dispay Config that show e.g. ALT, SPD, HDG, VS
You create a second config that show FUEL, RPM FLAPS etc.

BOTH Configs use as Device the SAME Display.

Now both would work same time and wil overwrite each other..... Thats a Problem ! So we need a Precondition in each Config.
It work like a condition that say.... ONLY work if xxxx is true !
The Indication of those Precondition is always a existing Output Config.

For example you can readout the GEAR Status..... Gear UP means Offset Vaue "0" Gear Down means Offset Value "1"
If you now say in the Display Configs.... For the first "Only work if the GEAR Config show 0" and the second "Only work if GEAR Config show 1" then you can toggle the Displays by setting the gear or not.

In your case you like a simple button.... not the Gear. So you need a "free" Offset. E.g. 66C0 and the follows are free.

So.... Create a Output Config that read Offset 66C0 Size 1 BYte Typ INT. Not use any Device here. We just read that information for the precondition.
Finaly you need a Input Config for your Button that change this Offset ( In your case with 2 Display instances we just need to toggle the Offset form 0 to 1 or 1 to 0 .
So make a INPUT Config.... Typ FSUIPC Offset Size 1 Byte INT . Use your Button as Device . On Press you say if($=1,0,1)

Result: A Button Pres write Offset 66C0 to 1 if it´s currently 0 or to 0 if it´s currently 1. The Output Config READ this Offset. And your 2 Display Configs work in case if this Offset is 1 or 0.
Good Luck !
2020-11-11 20:01
Avatar
fjgaspar
Posts: 18
Wow, thank you very much!! I didn't understand which preconditions are.

This kind of interaction is very very powerful!
2020-11-11 23:49
icon