#Commute 2 functions on one 7 segments Display

1 messages · Page 1 of 1 (latest)

wary dome
#

HI MobilFlight How are you?
As other guy on this forum BePRoFims Dudefromoz (i asked alo to these guy if they can share experience mmc file to understand method)
What I want understand?
I would like to use the same 7 segments digit to Land Alt and FLT altitude.
1-I create two ledModule 01 (FLT)and 02(LAND) ==> similar to LCD display which works
2-I create a button MF variable name Mode0: 0 and Mode1: 1
i tried to to select in Mode1 :FLT altitude and in Mode0 Landing Altitude with precondition
But it does not work.
In reality I have 2 ==> 7 segments display on my future Overhead Panel** but i test this method.**
My intention is to use all of them to display other parameters as Electrical Battery voltage etc
I do not have problem to create the same on LCD display in two lines not only one
Thanks for help but I can wait answer Have a good day
Merci
Photo of my test prototype 😉

wary dome
#

Commute 2 functions on one 7 segments Display

lapis ravine
#

I saw your post in the 737 overhead thread. For that overhead there is a switch to change between flight and land modes for the display. I’ve not created a config yet but the way to manage it is to create a local variable for “display mode”

you then set the switch to change the value of that variable e.g on = 1 and off = 0.

Then Create separate output configs for the 2 modes, each with a condition so flight has a precondition that “display mode = 1” and land has a precondition that “display mode = 0”. You can apply the same precondition mode switching for an input device if you’ve got an encoder for adjusting the value on the display.

There might be a more efficient way of doing the above but that’s what’s worked for me for other panels.

wary dome
#

Many thanks dudefromoz It seems that I had problem with precondition.
i tired differents methods but not works.
My precondition with a switch Mode 1 and Mode 0 seems working only when I stop MF and launch again after commutate switch.
imortant i am using only a 7 sepgment of 8 digits with only a Max7219 not two?
i tried also to create FLT and land 2 line ON and OFF
one line with the 1 2 3 4 5 flag and the other . . . . . with two condtions FLT ==> Mode1 and Mode0 and for **land ==>**another name Select1 and Select 0 not works
for me as I explained I use 2 X7 segments display but it is very interesting to understand other method.
in conclusion if you have made that for others panels sure i made an error.

thorny nacelle
#

In theory, it is possible to successfully use one independent variable per mode, but there is really no point in using four variables that need to be turned on and off simultaneously since they are not really independent, when only one variable is needed.

#

Whenever you use variables, because they are always initialized with 0 value as the default, to always program your default state to be 0.

#

For that reason, it is always better to start with 0, instead of 1, even though 1 and 2 may make a lot more sense to us humans (like setting COM1 with the default 0 value).

wary dome
#

Thanks JaimeLeon for answering.
I tried again without success
I precise that I use FSUIPC7 offset 0x656C (FLT) and 0x6572 (land)
I create MoboilFlight Variable a Button name Mode with two conditions ON Mode1=1 and Mode0=0 I do not know if is is important vairable is Number
I create a
LedModule01_On for FLT with precondition Mode1=1
LedModule02_On for Land with precondition Mode0=0
I want to use the same Digits 1 2 3 4 5 for FLT and Land I have only one CI Max 7219
see photos .
But it does not work.
if I tried only use one of them

  • i cannot obtain FLT display light in mode 1 and when I commutate switch in Mode 0 Display no Lights it kept the las value for example 18000 ft .
    -The same with** Land** display light in mode and when I commutate switch Display no Lights it kept the las value for example 300 ft .
    Do you have an example of screens with the right parameters?
    Personaly it seems that if I commute in Mode 0 before launch MF it works no light and when I switch mode in 1 it Display light but I cannot reverse processus Switch Mode 0 Normaly No light but it continue to Diplay FLT or Land light.?
    Sure I do not have understood I discovered MF and I made a mistake but ?
    Thanks
brisk blaze
#

LedModule01_On for FLT with precondition Mode1=1
LedModule02_On for Land with precondition Mode0=0

This is still wrong. You shouldn't have Mode1 and Mode0 for the preconditions.