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
pilota57
From: Bolzano, Italy
Posts: 60
Supporter
Hi,
I set a basic radio with LCD Display including Com1 - Nav1 and Transponder code.
I will set the transponder code with four buttons that using the Event ID's:
65651 (thousands) - 65652 (hundreds) - 65653 (decimals) - 65654 (units) all with 0 (zero) as parameter.

Almost is working except for thousands:
When I reach the number 7 (i.e. 7654) the next push of thousands button show me an empty first thousand digit ( 654) and next thousand push button display me 1 (1654).

I noted that if Ieave the empy digit in the left position the nearest right digit dont show 0 but becoms also empty.

Samples with X as per "empty digit"):

7054 >> push thousand 7 = XX54
XX54 >> push three times decimal 5 = XXX4

Mobiflight 7.10 + MSFS 1.9.5.0 + FSUIPC7

Thanks for suggestions
[Last edited by pilota57, 2020-10-15 18:05]
Fuarce Friûl
2020-10-15 17:58
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
Just a wrong tick in Display Tab.

I will explane detailed to show you the system for future usage !

There exist 4 Modes to show a value on a Display..... That Modes come to work if the Value got less numbers then the number of diggits !
In your example you use 4 Diggits for the XPDR..... The Offset show this number as a INT.
If you set 0054 the value of Offset is simply "54" Means a 2 Number Value that is used on a 4 Number Display ! Mathematical there exist no 0054 !!

The Modes ( called Left padding) are the follow. ( _ = means A empty diggit) For example Value 54 on 4 Diggits

Without Left Padding and Typ Zero : 5400 ( It fill up with zeros to the RIGHT )
Without Left Padding and Typ Space: 54 _ _ (It fill up with Spaces to the RIGHT)
With Left Padding and Typ Space : _ _ 54 (It fill up with Space to the LEFT)
With Left Padding and Typ Zero : 0054 ( It fill up with Zeros to the LEFT)

The last one is what you need !
Good Luck !
2020-10-15 20:35
Avatar
pilota57
From: Bolzano, Italy
Posts: 60
Supporter
Hi Piz,
thanks for your answer.
I know that with the 8 digit's displays in MF are the options that you described but for my Com, Nav and Transponder Radios i'm using an LCD Display with placeholders used to show values as wrote at beginning in my post.
You can see that at link:
https://drive.google.com/file/d/1QBs9mAsZXvrgQVVM6aOi7KFT0xZ5kAQl/view?usp=drivesdk

In LCD Display options I dont see the possibillity to set padding etc.

Or is possible to "manage" the placeholders ? It seems to me that the placeholders ar also variables.

Thanks again
Fuarce Friûl
2020-10-15 21:28
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Your right.
I´m sorry i overread the little "LCD" note in your posting !

Here we not have that option. In that case we need to use some tricks.
In case only some rare users want to show those things ona LCD and mostly we not need a Padding there this option is currently not available.

To Solve this we need Compare Tab and some formulas.

Try IF value < 1000 ( less then 1000 )
THEN: if($<10,'000'+$,if($<100,'00'+$,'0'+$))
ELSE $

That means if Value is 1000 or more The ELSE work and show simply the 4 number value
If Value is 999 or less then the THEN field work. Here we check.... If Value is less then 10 we add "000" prior the value ( 0001 to 0007 ) ELSEIF Value is less then 100 we add just "00" prior like (0010 to 0099) and finaly the ELSE if value is less then 1000 (but more then 99) we add only one Zero prior ( 0100 to 0999)
Good Luck !
2020-10-15 21:40
Avatar
pilota57
From: Bolzano, Italy
Posts: 60
Supporter
Thanks Piz,
tomorrow i will try and report the results.
Gute nacht
Fuarce Friûl
2020-10-15 22:11
Avatar
pilota57
From: Bolzano, Italy
Posts: 60
Supporter
iconpizman82:

Your right.
I´m sorry i overread the little "LCD" note in your posting !

Here we not have that option. In that case we need to use some tricks.
In case only some rare users want to show those things ona LCD and mostly we not need a Padding there this option is currently not available.

To Solve this we need Compare Tab and some formulas.

Try IF value < 1000 ( less then 1000 )
THEN: if($<10,'000'+$,if($<100,'00'+$,'0'+$))
ELSE $

That means if Value is 1000 or more The ELSE work and show simply the 4 number value
If Value is 999 or less then the THEN field work. Here we check.... If Value is less then 10 we add "000" prior the value ( 0001 to 0007 ) ELSEIF Value is less then 100 we add just "00" prior like (0010 to 0099) and finaly the ELSE if value is less then 1000 (but more then 99) we add only one Zero prior ( 0100 to 0999)



Hi Piz very good news: it works perfectly.
I hope this suggestion could also helps other MF users.

Thanks again
Fuarce Friûl
2020-10-16 07:57
icon