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
savery999
From: United States
Posts: 31
Hello, im not sure if the translation function was off here, but could someone let me know what goes in each line of the compare and precondition tabs as an example of how to properly input these!.
...below the stars ***** is what I am attempting to follow from a previous post and a worked example or screen shot would be great!

e.g. - COMPARE
1) If current value = <-1000
2) set it to - 5 spaces?
3) else set it to- "$"


thanks, Steve Avery


************************************************
vert speed:
offset 6530, 2 bytes INT Multi 1, 5 digits, left padding YES SPACE
VS has two flaws .... On the one hand, the display is not blank after VS is deactivated again, but it shows permanently -1696 .... On the other hand, only "0" is displayed at zero and not "0000" as in the PMDG
Both things can be turned off individually via a comparison (but only ONE at the same time). If you want to clear both "errors" you need an additional config entry.

A: The 2 comparisons
either for blank: IF value less than minus 10000 "<-10000" Then set 5 spaces "With Then just press space 5 times" Otherwise value "$"
Or for 0000: If value is zero "= 0 "Then set 4 zeros" 0000 "Otherwise value" $ "

B: To both"

VS BLANK
Offset 6532 1 byte INT, Multi 1, 5 digits Left Padding NO (This entry for the same display and the same digits as VS)
Comparison: If value is 1 "= 1" then set 5 spaces "With Then just set 5 press space times "
Precondition Only use if config entry from VS (you have determined your own name) Less than minus 10000" <-10000 "
Furthermore, the following must be inserted in the original VS config entry ....
Comparison: As described above for the zeros. ... If value is zero "= 0" Then set 4 zeros "0000" Otherwise value "$"
Precondition: Only use if 2. "VS BLANK" Config entry is equal to zero "= 0"

Now the 1st entry regulates the four zeros and the 2nd entry deactivates the display if VS is not on!
Thanks, Steve Avery
2020-12-10 19:47
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

When i wrote this guide in the past i still startup with Mobiflight and Cockpitbuilding just few weeks ago. So my knowledge was verry poor and i not use the full "deepness" of the Mobiflight tools. And sure.... Also Mobiflight was verry basic that time. Within the time Sebastian include a lot of new stuff ( like transform field and placeholders)

So whatever the explaned way still work..... Today we can make it much more easy with the same result.

************
Your Example the VS Display

As i wrote there are 2 Optical problems....
1. If VS is active but selected Value is "0" then it show "0" but the virtual Display and real Boeings will show "0000" .
2. If VS is disabled it show "-1696" or so..... But the Virtual Display and Real Aircrafts will show a blanked Display.

To solve TODAY we will use simply the follow Compare:

IF Value < -10000 ( less then minus 10000)
THEN : "Spaces" (Press 5 time Space Button so MF will show 5 Empty Characters on the Display)
ELSE : if($=0,'0000',$) ( the ' Symbol left and right from 0000 is for a String Output.... In german Keyboard its above the #.... Simply Copy Paste from here)

**************
NOTE: I also not include the Lighttest and Blank in case of Battery that time.... This can be done with placeholders Today!
For example you read the Lighttest Switch and the Battery Status with 2 Configs ..... Use them as Config Refference with symbols "a" and "b" and then you can include this into the logic.
For example the Lighttest.
Here you chose "a" as the Lighttest Switch Indicator Config ...... In Transform you say something like if(a=1,88888,$)
Means if Lighttest Offset (a) is "1" ( Means lighttest is active at the moment) THEN show "88888" instead of the VS Value. If NOT ( So no lighttest is active) show $ ( the real VS Value).

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

Please try out. If ypou get stuck then request again for help. We pretty sure can guide you in right direction !
[Last edited by pizman82, 2020-12-10 23:28]
Good Luck !
2020-12-10 23:23
Avatar
savery999
From: United States
Posts: 31
worked a treat, thank you so much for the prompt reply!, I now have all the displays working per the guide, this one threw me off..

but yes your explanation is much simpler!

cheers!
Thanks, Steve Avery
2020-12-11 03:01
icon