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
Egyptair
Posts: 16
Hello,

due to technical reasons, I have to solve the following situation:

if NAV2 <110.00 then ADF2 = 200.0 else ADF2=1111.1

I could not figure out, how to address an offset in mobiflight although I am very sure, that this is possible.

Any idea ?

thank you !

Egyptair
2021-01-08 20:39
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I not understand that logic.....

Do we talk about INPUT ? Here i will say NO.
Mobiflight can not make Inputs in case of a Condition.
For example.... If Altitude Offset change from 9999 to 10000 THEN send a command to Sim that Disable the Landing Lights.... THIS is not possible.
A Command MUST be executed by a button Press of the User.... Never by a readout status automaticly.

OR
Do we talk about a OUTPUT System.
Here i not understand.... Do we talk about ONE Display.... So you like e.g. NAV2 on it but aslong NAV2 is below 110.00 then it should show ADF2 ?
Or do you like that the ADF2 Display should use NAV2 as a condition.... But it make no sense to show 200 or 1111 at all time.

****************
Please explane me in a little example WHAT exactly you like to do. Not only the formula.... Tell me a little story when this happen and what you expect to use this system.
Good Luck !
2021-01-10 18:05
Avatar
Egyptair
Posts: 16
Hello pizman82,


thanks for your post. The background of my question:

I am using a pedestal board (Sismo soluciones pedestal board) to use my pedestal.
On this board, there is a defect in the output of the NAV2 active value. One single 7 segment is not working.
the missing number is (1x8.95) , that means, the second number from the left
I made a shortcut to show the value of the first NAV2 digit ( = 1) on this position. Now the gap is filled on the display, but of course, not the correct value.

Now it is possible to pick out one ADF2 value (which I do not use) and to show this value on the nav display...
my trick is: if nav value is <110, then the missing number is a 0... else the missing number is a 1
so if the nav value is below 110, then the ADF2 value changes to 200.0 here I can pick out the "0" from the second position.
if the nav value is >= 110, then the missing number is a 1... when ADF2 changes to 1111.1, then I can pick out the second position, which is now a 1.

Meanwhile, I was able to make 2 entries in mobiflight:
a) ADF2
b) NAV2

precondition: if value is < or >= 110, then change the value.
It works in that way, that the red exclamation mark jumps correctly, but I am not able to change the value of the ADF2

quite tricky, I know :)

Greetings
Egyptair
2021-01-11 12:27
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
OK... Interesting Idea.

I hope understand correct.....
Your NAV2 got ONE broke Diggit.... So a Frequency of theoretic 123,45 is shown as 1_3,45

What i not fully understand is.... How do you "pick out" a diggit from the ADF2 Display into the NAV Display ?
Do i understand correct you like to use the ADF2 Display as a "indicator".

So for example.... IF Nav is e.g. 109,10 it will show just 1_9,10 And you like now the ADF2 Display should show 200. So YOU know now that if ADF2 is "200" then the missing diggit on NAV should be a "0"..... Otherwise if NAV2 is 113,55 iw will show 1_3,55 and now ADF2 should how 1111 .... so you know the missing Digit in NAV2 is now a "1"

****************
Here two ideas and questions.....

1. Why do you use these two values.... If you not need ADF2.... Why do you like to use the second diggit here as the indication and why using these 2 "strange" numbers.
Why not simply use in ADF2 "0" and "1" or "0000" and "11111" whatever you need a 0 or 1 ?

2. I think your lucky.... the second Digit on Nav 2 is not needed and you not need a Indication. You KNOW on every Frequency yourself already if this is a 1 or 0 by reading the other numbers.
Nav2 goes from 108.00 to 117,95 ..... So the second Diggit is logical in case of the 3rd diggit ! .... IF the third diggit is a 8, 9 then the second MUST be a Zero "0". If the 3rd diggit is a 0, 1 2 3 4 5 6 or 7 then the second MUST be a "1" .
108,00 to 109,95 need a 0 on diggit 2..... 110.00 to 117,95 need a "1".
Hardly said... You can use your NAV Display with the missing 2nd Diggit without problems.... Cause you KNOW already what it would show !

**************
Summary: Think about my suggestions..... tell me finaly what you need. Then i can give you a formula ! OR tell me if i missundertand your intentions !
Good Luck !
2021-01-13 23:13
Avatar
Egyptair
Posts: 16
Hello,

thanks for your post...

the idea is: I can pick out the second value from the ADF and put it on the NAV display , where the missing value is...

the trick is, that every number has it's own pin, so I can "transfer" the second number from the ADF2 to the second number of the NAV2 via a male-male jumper wire cable.
the indication then is possible...at the moment, I made a shortcut between the first and second number of the NAV2, so instead of 1x4.20 , it shows 114.20... but if I go below 110, it still shows the 1... so 109.90 will be shown as 119.90.
the 1 is choosen, because the probability during flight, that the correct frequency is shown is much higher than the 0... as you mentioned, there are only two values , which aren't shown correct in that scenario: 108.xx and 109.xx... unfortunately, this area is often used for ILS frequencies (109.90 is extremely often).
I still know the correct frequency, as 118.xx and 119.xx are already COM frequencies, so it can only be 108.xx and 109.xx... : )
why I choose the ADF 200 and 1111.1 is that these are valid frequencies... everything is possible, as long as x0xx.x below 110.00 and x1xx.x is >= 110.00 .
the sole purpose of the ADF2 is to deliver a 0 or a 1 to the second NAV2 display... in order to know, what number should be delivered, it is necessary to have a precondition:
NAV 2 >=110.00 -> ADF2 deliver a 1 to the second number of the NAV2 please : ) 1x4.20 would be 114.20
NAV2 <110.00 -> ADF2 deliver a 0 : 1x9.90 would be 109.90


Greetings
Egyptair
[Last edited by Egyptair, 2021-01-15 20:28]
2021-01-15 20:23
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Again

So.... If i now understand right.... The "Display Diggit" of the second Position of NAV2 is NOT broke. The Display work if you "controll" it via a "bypass" wire.
So the controller of that diggit is broke ( e.g. the Common cathode of that line) ..... but the Diggit itself work fine !

Now we must know.... HOW do your Software ( Pretty sure you not use Mobiflight for this right ?? ) controll the displays.

Basicly Mobiflight can NOT do something like "Change ADF2 automaticly if NAV2 is <110 or >110. " As i said... Change a Frequency ( or every other active input) must be done by a button press.

So the master question is.... Do you controll the Displays via Mobiflight ? Means are these Diggits controlled by a MAX7219 ?
If YES.... Then we must simply build a Config that controll that broke diggit. We not need to involve the ADF2 here. We build a "dummy" just for that single diggit.

If NO.... Then here Mobiflight is out.... You can not change the ADF with Mobiflight by a internal logic. Here the only Solution would be a own code in FSUIPC that "internal" change the ADF2.


**************
Last Note:
If the Display is basicly working fine..... And the Other Diggits working fine. It looks like just a bad solder point or so. The chip can not be "broke" if other Diggits work. Do you already check the lines ? I wondering here.... Maybe a checkup and resolder is enough to make the current system working again !
Good Luck !
2021-01-15 22:55
Avatar
Egyptair
Posts: 16
Hello pizman82,


thank you for your post.

You are right, the software is controlled via pro sim 737... I hoped, that mobiflight (which I use for FLT ALT / LDG ALT and IRS PANEL) would change the ADF value.
So I have to go via fsuipc....

Problem with checking the soldering and the lines is, that everything is built in, tighten and needs a lot of time/work to build it out.
My girl friend is already angry with me, as I spend too much time with this "stupid sim" :D

But I think too, that it is only a minor thing, because very other segment is working, so it must be something with the soldering or the line..

one of these things, that could be fixed within minutes, when to know, where to find the fault : )

Greetings
2021-01-20 15:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
ProSim not controll your Panel! Pro Sim is a AddOn Aircraft.

When this panel is not controlled by Mobiflight then it have a "own" Software..... Sure this Software will get data from Prosim same way as Mobiflight recive it from Prosim.
BUT as i said..... ProSim itself not control Hardware!

But... Let me ask another thing. You said you could "bypass" the Diggit.
Do you have access to all Pins of that single Diggit ( 7 Seg and Cathode ) ?

If yes.... Then you could technical controll this single diggit by a MaxChip ( you exclude it fully from the internal Panel System.
As result.... You create in Mobiflight simply a Config that controll 1 Diggit and it should show a 1 or a 0 ( in case of current frequency) .
So.... All Diplays are controlled and powerd by the Internal Systems.... Just this single diggit is wired to a MAxChip and a Mega with Mobiflight
Good Luck !
2021-01-21 05:42
icon