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
Hello how to setting the offset fotr this fonction in Mobi
overspeed and underspeed with flashing segment display

this is the dataref for zibo 738
MCP SPD DIGIT 8 laminar/B738/mcp/digit_8
MCP SPD DIGIT A laminar/B738/mcp/digit_A

i create offset with xpuipc but how setting in mobiflight?
2020-09-04 18:19
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Is your question about the "flash" or about the Data Itself ?

Pretty sure you still know how to set Zibo internal Data to Offsets via the XPUIPC CFG file. So this should be no problem.

Short awnser.... Mobiflight itself NOT be able to flash a LED dirctly. ( We plan for that in a future version. But not today)


So Question1: How does the Data (Offset) looks like ?
Is it "1" all time alsong a Over/Underspeed is happen OR does it swap between 1/0 in the same sequence as it should blink ??
If it swap then simply set the data to a Offset and ue a LED in Mobiflight..... it will act in same way as the 1 or 0 is change in the offset.

If the Offset is 1 All time your options are rare.
As i said..... MF not allow a Blinking Option!
The only improvisional Workaround i to read e.g. the "Seconds Time in Sim - Offset" ..... For example the current Sim Time (Seconds).
Here we use a formula like "$%2" ..... Means if the Seconds are "odd" then $%2 ocure in "1" ..... If the seconds are "even" then $%2 ocure in "0"
With this trick and a placeholder formula we can blink the Diggit in a "1 Second ON --> 1 Second OFF --> 1 Second ON" sequence.

Alternate..... If you can scripting you can "maybe" solve this within XPUIPC.....
So you make there a loop that say something like " If Lvar =1 Then Write Offset to 1 wait 0,4 Seconds Wirte Offset to 0 wait 0,4 Seconds go back to beginning"
I not know that technics..... Try out !
Good Luck !
2020-09-05 00:25
Avatar
Banzai
From: France
Posts: 90
hi
the offset swap between 1/0
so i configure like a led output and thats working great :thumbup:
the A and the 8 are even flash when the offset changes value.

there is just a display bug with the "8" the led lights really weakly with the "A" no problem!:confused:

also can you help me for the change from kts to mach mach always displays "0" I don't know what parameters go into mobiflight to have the right value displayed
2020-09-05 17:37
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

About the knots..... I can help you pretty sure but i´m not a pro with this XPUIPC custom created Offsets.
So i must "see" how it workes.... What Offsets and types are used and how you handle them.
Pretty sure we can fix your problem together

About the Wrong Brigthness. This sounds like a Config Problem.
Are i´m right you set the A and B (8) in XPUIPC to TWO different Offsets ? And you set in Mobiflight 2 Configs ( each one Offset) and both use the SAME Diggit in Display ?
This is problematic..... Cause without preconditions both light ( or blank) the same Digit same time.
If your "B" is showed same time the Config from the "A" is technical Blank. Means it will disbale the Segments same time when the other Config like to light a "8".
The reason why this happens only in B and not in A is maybe the sequence how you create the configs..... So also the "A" would be flickering but here it happens in the moment when it is already blanked by itself with it´s blinking logic.
To solve this we should set BOTH Datarefs to one Offset with a good codeline in XPUIPC OR we should try to build a Precondition .

To test this yourself..... Set the A and B on TWO different Diggits ( Just for testing.. If you got no other free digit then use only ONE Config and test it seperate). I would say then both work fine !

*******************
Summary: Please join our Discord Server..... then we can Talk via Headset and i can see your screen. Then we can fix your problems pretty fast !
Good Luck !
2020-09-06 00:27
Avatar
Banzai
From: France
Posts: 90
hi
you are right it works perfectly with each configuration separately:thumbup:
2020-09-06 07:44
icon