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
calibra2001
Posts: 23
Hi,

I have a 7 Segment Display displaying (offset 1) but would also like to use the same digits to display another offset (offset 2).

If (offset 1 changes) then display (offset 1)
If (offset 2 changes) then display (offset 2)

Would this be posible?

many thanks

Phil
2022-04-12 18:30
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
In Theory this is possible.... But let me ask how you plan to use this ?

For example if you use 2 Encoders.... One Changge e.g. Heading and the other change Altitdue...
Here your logic is a little confisuing.... Cause it show e.g. Heading at the moment before you turn the Alt Encoder.... And after the first detent it swap to Alt.
Means the first Input is "in the dark".... Cause you not know that moment what ALT is selected.

Normaly we use here a "Mode Selector".
For example a Button you can toggle between Offset 1 and Offset 2 .
This "Mode" can also be used for the Inputs.... So for example you got 1 Encoder and one Display but you work with 2 Different Things.
In Mode A the Alt is shown and also controlled by the Encoder.... In Mode B the Heading is active on Display and set to the same Encoder.

Please explane me exactly the usecase. If needed i can then guide you for the "On Change" Logic to swap the Displays.... But i think it is not a good Idea for now.
Good Luck !
2022-04-12 21:20
Avatar
calibra2001
Posts: 23
Offset 1 would be flaps position (PMDG 737, 1, 2, 5, 10, 15, 25, 30, 40)
Offset 2 would be bank angle setting (10, 15, 20, 25, 30)

Obviously bank angle doesn't get changed much as its on a rotary encoder (I want a display of the exact setting) when its altered.

Many thanks

Phil
2022-04-13 17:30
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Ok.
Basically Posible.... But i would rethink this.

1. Is this usefull ?
You know Bank Angle indication by the switch position Also in real aircrafts there is no Display to show this.
You know Flaps Position technical by the handle setting or by the analog Gauge.
So i think only Flaps make sense here.... And also only if you not build the gauge itself.

2. logical to just use 1 Display ??
Both Values can be 10,15,25,30 . How do you know what value is curently shown.... To avaid a missuinterpretation?
If you really build it on one Display you should include something like F and A in Front.... So you know if it is F-laps or A-ngle
Basically we avoid those things. In a real aircraft never two values are on a Display shared.... And if yes with a clear indication!

3. When you like to build this there are multiple ways....

Most easy is a selector. So you have e.g. a ON-OFF Latching switch. In LEft Position it show Flaps on that display.... In Right it show Angle.

A little more advanced but usefull.... Make a clear indication when the modes are Active....
E.g. you only need to know Flaps Position while you handle Flaps (Takeoff and Landing) So you can say.... If Flaps are "0" ( UP) then show Bank Angle.... If Falps are in use (>0) Then show Flaps. Would be logical cause in Flaps procedure you would not use Bank Angle Auto turns anymore.

Or as you expected..... We could make a logic that write a Variable e.g. to 0 , always if Flaps Inputs are done.... And to 1 Always if Bank Angle inputs are done.
So it would simply show the value of the last changed System.
Good Luck !
2022-04-13 18:01
Avatar
calibra2001
Posts: 23
Many thanks for this explantion.

I have had it before where I have moved the flaps lever but it hasn't operated for some reason so a backup guide is prefered.
On the bank angle I have it on the altitude dual rotary encoder (with click) so without looking at the mcp on screen which I don't have on screen theres no way of knowing the position other than max or min due to rotary encoder constantly able to spin.

Or as you expected..... We could make a logic that write a Variable e.g. to 0 , always if Flaps Inputs are done.... And to 1 Always if Bank Angle inputs are done.
So it would simply show the value of the last changed System.

(thats what i am looking for) I will be using a letter to signify Flaps or Angle.

I'll hopefully look into this at the weekend.

Many thanks

Phil
2022-04-13 18:20
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I will talk to some other guys tonight.
Hopefully we have a good idea.

If we would think about two encoder or button/switch based system..... this is no big deal.
In case the Flaps are pretty sure done by a Potentiometer ( Joystick axis) this is a little more difficult.
But i´m looking forward we find a solution that workes for you.

Lets talk here about our ideas.
Good Luck !
2022-04-13 19:46
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
UPDATE:

After a short brainstorming with Sebastian we find a solution.
I not know your skills if you be able to build this yourself or if you need some support.
If you need help, contact me on Discord! Then we can build this together!

Basic Idea:

We build a Mobiflight Variable that store the current Mode.... E.g. "0" and "1" ( Use 0 for the Mode you like to be displayed at systemstart before you handle Flaps or Angle first time)
Lets call this MF Variable for example "Mode1"
At First create a OUTPUT Config that simply Read this Variable to have a refference for later claculations. Lets Call this Config e.g. "FLAP-ANGLE MODE"

At next you can use Placehodlers or Preconditions ( whatever you prefer) to build the Display Config(s) itself.
With Precondition you create 2 Configs.... One Show Angle Mode Position.... The Other show Flaps Position Both are connected to same Display.
Preconditions say... Flaps e.g. only works if Config "FLAP-ANGLE MODE" = 0 the other only work if that config = 1
With Placeholder you would controll Display within the FLAP-ANGLE MDDE" Config and you use the 2 Configs for Flaps and Angle as "refference" . Lets say "a" and "b"
Transform: if($=1,a,b) So if Indicator = 1 then show a ( e.g. Flaps) else show b ( Angle).

At last the Inputs to define the MODE.
For each INPUT Device ( i expect a Encoder for Angle and a Axis for Flaps) you must "duplicate the Input Configs you create already)
The Original Input Config controll the Function ( Change Angle and flaps)
The Duplicated now controll our Mobiflight Variable !

For The BankAngle for example you duplicate the Config and you will say on all 4 Tabs ( Left, Right, FastLeft and FastRight) everwhere "Please set MF Var "Mode1" to "0".
So every turn will send a "0" to that Var.
For the Poti Axis you do the same.
Here you say as Input "1" to the MF Var ..... Means every Poti usage occure in a "1" send to that Var.

Result:
Always if you turn the Encoder from Bank, then Var is set to 0 ..... Always if you use the Poti for Flaps Var is set to "1"

***************
I not know if you also work with MultiPos Rotary Switches. But its the same. Here you would use the "Release" to send the Var Input.
In easy words.... You just need to get sure every of the 2 Input Actions always set the VAR to the needed value.

**************
I hope this information helps. Else contact me !
Good Luck !
2022-04-13 21:16
Avatar
calibra2001
Posts: 23
Many thanks for this.

This weekend should be interesting trying to make it work.

Possible problem I might have is the rotary encoders are currently on a leo bodnar board using LINDA, as when i built the MCP mobi didn't support rotaries.
and the Flaps are on a Pot for 737 and (ON)-OFF-(ON) switch for other planes.

I do plan on updating the mcp to a backlit unit (homemade). so the options will be there for your suggestion.

I have the offsets working for flaps position and bank angle. So it'll just mean a brainstorm in front of the PC :scared:
Anyway I won't give up :thumbup:

Many thanks

Phil
2022-04-14 18:14
Avatar
calibra2001
Posts: 23
Hello

After spending a couple hours thinking about this yesterday and testing on MSFS 747 (although this has auto on bank angle aswell.
Max Bank angle offset ($*180/3.14) gives correct readings except for auto where the value says 8, but I know I can fix that relatively easy.

I was thinking:
if Flap new value != Flap old value then mode change equals 1
if Bank new value != Bank old value then mode change equals 0,


But then came the problem:
Old value changes at the same time as the new value so they always equal the same.

I'm not sure if I can overcome this :confused: without an input (mobi variable), which unfortunately isn't possible at the moment.

Many Thanks

Phil
2022-04-16 13:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Whats the problem now ?
Why so Difficult to compare the Values?

Linda/Bodnar is no Problem.... We can meanwhile READ the Bodnar with MF.... So the 2 "buttons" that represent the Encoder should show us in MF a clear Left or Right Command when you turn it.
So you can simply say in MF Whatever that Bodnar send a left or a right.... Write a MF Variable e.g. to 1

For the Pot of Flaps and also the On-OFF-ON we do the same.....
Additional Configs that say "If Pot is moved" always write our MF Variable to 0 .
Same for the ON-OFF-ON.... Additional Configs that say Whatever Pressed or Release. ... Always write MF Variable to 0

Summary:
If you move your Encoder ( On Bodnar) our MF Variable is write to "1" .... If you Move Flaps Poti (or) Flaps Switch in every position it will write our Variable to 0

At the End we just need a Output Config for The Display that define it should show BANK if MF Variable =1 and FLAP if Variable = 0


****************
If you expect another logic.... Tell me (best way in Discord voice) exactly what you need and how it should look like.
Good Luck !
2022-04-16 14:05
Avatar
calibra2001
Posts: 23
Sorry I hadn't realised mobi can see Bodnar inputs and other boards for axis.
Input:
Flaps switches and axis mobi variable set to 0 (I was going to add F5-F8 but mobi doesn't appear to see my keyboard in offline with debug on)
Bank angle rotary (Left/Right) variable set to 1

outputs:
Mode: receive variable
Flaps: (with precondition if mode = 0)
Bank: (with precondition if mode = 1)

Many thanks
Phil
2022-04-16 16:48
icon