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
Japmaco
Posts: 48
Would it be possible to map something, i guess it need to be update from the mobiflight software but.. be able to have to settings for one 7 seg display, that can swap with a press of a btn...

Example.

One 5 digit 7 seg.. use for DME distance... with a press of a btn.. load in Another config with DME time so its possible to swap between more config on the same Active 7 seg.


Make any sense? =)
2017-08-16 22:19
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Japmaco

AT FIRST....
Please awnser to my request in this topic... https://www.mobiflight.com/forum/message/5660.html We realy need your information there !!! Thanks !


To your Question....

YES This is possible.
With using "Preconditions" you can use different Configs for ONE Hardware part ( For one Display in your case)

Basicly there are 2 Rules you always should check !
1. There should be never more that ONE Config Activ on a Output ( if they like to show different things) Elseway you got an issue if 2 Things on the Display same time !
2. There must be always ONE Config active in every time.... Else the Display is not controlled and will show the LAST Readout Value "forever"

To the Preconditions....

You need a indicator ( A Existing Output Config) to define in the Precondition WHEN the current Config should be shown.
So you can use 2 technics...

1. You use a existing FSX function for this.
Simply example.... You readout the Parkingbrake Offset. Then you create 2 Configs for the SAME Display... One with DME distance.... One with DME Time.
Then you make on both configs a Precondition .... DME Distance only work if Outputconfig Parkingbrake = 0 DME Time only work if Outputconfig Parkingbrake Bigger Zero >0
Now your Display will swapp always when you change the Parkingbrake On/OFF

I Know here parking Brake makes no sence.... BUT This only should show you the technic.... Maby you like a condition like "If Distance bigger the 20 nm it should show TIME if Distance is less then 20 miles it should show DME-DISTANCE in the Display."
SO... THIS Technic is usefull if the Condition is a FSX Internal Status !

2. You use a Custom Offset to work with a button like you requested)

Please check this tutorial .... https://www.mobiflight.com/forum/topic/652.html
I Know this is for a multible Button Controll.... BUT The System is the same.... You set to a button a logic that controll a CUSTOM OFFSET ..... Then you use for your Display THIS Custom Offset for the Precondition ! ( In the Guide he use the Preconditions for a INPUT.... You will use it for the Output ! )
So THIS tehcnic is usefull if you like to controll the Swap completly yourself

I hope you can do this with the tutorial. If you need more help please ask HERE again !
Good Luck !
2017-08-17 05:10
Avatar
Japmaco
Posts: 48
It would be cool if the DME distance and time swaps automatic every 5sec or so on the same display. With no need for btn input. Would that be possible as well?
2017-08-18 01:09
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Japmaco,

This makes no sense and would provide for optical restlessness, which is not wanted, because quasi something flashes even if it is only every 5 seconds.
There is nowhere in the cockpit a constantly changing display.
Grüße,
Stephan (Time: UTC+2)
2017-08-18 06:45
Avatar
Japmaco
Posts: 48
I didnt ask for whats real. Just asked for a technial solution.

The costum offset works with a btn but its not workin 100%. It worka 1 or 2 btn presses. Then it stopps workin. If i wait a while it could work. If i restart mobi it works again. Not sure why but.
2017-08-18 13:08
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Please describe how you have done so far with you. Then it is easier perhaps with you to find a mistake or to find a solution.
Grüße,
Stephan (Time: UTC+2)
2017-08-18 15:25
Avatar
Japmaco
Posts: 48
https://1drv.ms/u/s!AgVMgapiFJvPjHhHLyWfZAaC2i2g

This is my settings file.

I followed that example of the rotarys but i used my diff offsets instead for output DME time and DME DIST, with the btn to swap between 0, 1 to activate the config corresponding to 0 or 1. It works 50%. When i boot up mobi it works maybe for 1 cycle (1 press) So if its showing DME DIST and i press the btn the DME TIME comes up, which is Amazing. But if i press the btn again, nothing happens. BUT if i wait for some time 30secs ish then it works sometime and also if i reboot mobi it workds for Another 1 press (1 cycle)
2017-08-18 21:41
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

At first to the Timer System....
( By the way i agree with Stephan.... In a Aircraft a Display NEVER Change by itself to prevent a missunderstanding. BUT Your Right. You not request a REAL System.... You Request a function as you like it )

Here there is a problem cause Mobiflight not support a "timer" at the moment.

To solve this i see two ways....

1. A Self written Script that export ecactly what you need to a Free Offset.
Then Mobiflight not needs a Precondition and 2 Configs.... You Simply show the Data from Offset XXXX on your Display....
In Your Script for example you Say...
Read DME Speed From FSX ..... Write it on Offset xxxx .... WAIT for 5 Seconds ..... Read DME Distance From FSX .... Write it to Offset xxxx.
And now LOOP This Script all the time.... Result On Offset xxxx now there is DME Speed and DME Distance swapping every 5 Seconds.

2. A Mobiflight solution with a Precondition of a Offset that change its value every 5 Seconds.
Perfect would be a Offset that change from 0-1 and back from 1-0 exactly every 5 seconds but i think this is not existing....
BUT We got for example a offset that show us "Passing Seconds since Engine Start" or something like this .
MABY You can use a Math Formula to split this Data into a Boolean that is 5 Seconds TRUE and 5 Seconds FALSE.

For This Math Formula we need help from Sebastian or another Advanced Math Expert !

( If you can scripting i will recommend solution 1)

*******************
To Your Button Problem.
Your Config looks good on first view, and should work fine normaly.
Maby you should observe in Mobiflight Window the "VOR1 Precondition" Config.... Does it change the Value ALWAYS when you Push the Button (multiple time) AND Does it change the Value by itself ???

I Remeber a old topic where a user report that a External AddOn ( think it was a Aircraft) is using Offset 66C0 simmular !!! In that Case the AddOn Overwrite your function.

So Please: Observe the Offset... Use maby for testing another Custom Offset like 66C1 66C2 and so on.
Good Luck !
2017-08-18 22:38
icon