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! 

icon
Avatar
HBilliet
Posts: 28
Supporter
I'm building my own A320 cockpit, and currently use the FlyByWire A32NX as the plane. I have built a mockup of the FCU, to test functionality and possibilities with MobiFlight. I'm sceptical, because I used to make my own software (previously used Jeehell A320 FMGS, which has a proprietary SDK, so no need for other tools), but it looks like MobiFlight has expanded a lot during the last 1.5 year. So before I dig into SimConnect, WASM, etc... myself, I want to figure out if I can do everything with MobiFlight.

I'm reading the SPD value via a "SimConnect (MSFS2020)" variable. I'm using the Group "Fly By Wire/A320/Autopilot", preset "AUTOPILOT SPEED SELECTED" which seems to give me "(L:A32NX_AUTOPILOT_SPEED_SELECTED, Number)". I don't understand everything yet, so don't know what the "Number" is needed for. But it works. I connected a rotary encoder to control the SPD (also using some "SimConnect (MSFS2020)" variable), and am now perfectly able to change the speed, and get the results in the sim and on my 3-digit 7-segment display. There is some lag on my display, but I guess that is normal (communication speed?). I just wonder what will happen if I will add the HDG, LVL and VS displays.

I have a few questions. It might be that these are specific for FBW A32NX, but I have to start somewhere.

1) If I put the SPD in managed mode, I should see "---", but I see "0-1" on my display. I think it wants to show "-1", but with leading 0 it shows "0-1". I assume that the correct way is to compare the value with -1, and if it is the case, show "---"? But how can I do that? Do I use the "Comparison settings" and do something like:
If current value < 0
set it to ---
else set it to $
Should I put the --- in quotes like "---"?

2) When I startup my sim in dark mode (nothing switched on), I see "000" on my display. It should show " ", because my plane is still dark. It might be that I need some conditions, which can even solve problem 1). For example: if dark then " " else if <0 then "---" else show value. Is this correct? If yes, any idea on what variables I have to use to check if my plane is in dark mode?

3) How can I control brightness of my 7-segment display? I know that in the plane, you do that by the left potentiometer below the FCU. But how can I make this work through MobiFlight? I know there is a fixed brightness control in the setup of the 7-segment display in MobiFlight, but can this be controlled by a value?

If this is not the right forum to ask these questions, any idea where I can get some answers?
[Last edited by HBilliet, 2021-12-05 20:08]
2021-12-05 19:50
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5128
Supporter
Hi

Many Questions in one request.... Lets split them up....

iconHBilliet:

There is some lag on my display, but I guess that is normal (communication speed?).



Basically MF have no seginficant lag.... whatever you use 1 or 100 Configs.... May a feel lag is occure in a extreme projects with thousonds of Configs.... But we not have reports here ( Also not from our advanced users)...... So if there is a Lag here..... then pretty sure on Sim Side..... So the FBW Airbus have the leg to update the Value in SimConnect.
Means.... We can not solve this.... But it should not be have a effect also if you use multiple outputs !

**********
iconHBilliet:


1) If I put the SPD in managed mode, I should see "---", but I see "0-1" on my display. I think it wants to show "-1", but with leading 0 it shows "0-1".



YES.... The 0-1 is occured in case you use a wrong "left padding" Setting.....
Lets say you show a Number of 12 on a 4 Diggit Display ...... ( "_" represent a empty diggit)
Whatever of the 4 possible Settings you use the display will show : "_ _12" , "12_ _" , "0012" or "1200"
Select Left Padding active Yes or No and select if you lie to fill with Spaces or Zeros !
But fur sure.... The fact it show "-1" instead of "---" is a other thematic, we talk about in next point!


***********
iconHBilliet:


2) When I startup my sim in dark mode (nothing switched on), I see "000" on my display. It should show " "
.....
It might be that I need some conditions, which can even solve problem 1). For example: if dark then " " else if <0 then "---" else show value. Is this correct?



Correct:
The Problem: The Raw Data ( e.g. the SPD Value from the Simconnect Variable you read) looks like not include the other Display Modes ( Blank in case of Power Off or Dashes in case of Managed)
This is a "bad" fact in case the AddOn Programmers just export there SPD and NOT export the value on that Varibales we like to show on the Displays.....
So your Right....
Your work is to write a Formula!!!
Some guys do this already within the Simconnect Code ( so they read in MF the final Value) But you can do it also in MF.
Basically you need to know WHAT you like and HOW you can build this.
For example.... If you know all Displays must be blank if a specific Variable is "0" ( lets say FBW Airbus have a Var that say "Display Blank =1 ")
Then you must include this Variable in your Formulas.

Your still on right Way.....
You must say IF Condition for Blank is True, then show Spaces..... ELSEIF Value for Managed is True show Dashes.... ELSE Show Value.
I can help with the Syntax..... But i need to know/see the situation..... may via Shared screen on Discord !

*************
iconHBilliet:


3) How can I control brightness of my 7-segment display? I know that in the plane, you do that by the left potentiometer below the FCU. But how can I make this work through MobiFlight? I know there is a fixed brightness control in the setup of the 7-segment display in MobiFlight, but can this be controlled by a value?



In the newest Version (as i know) this is possible.... You can assign a other Config Value as a Brightness indication.
Badly i have not tested out myself. I expect this config need a Value of 0-255 ( 0=Off, 255 if Full Brigh)

*************
iconHBilliet:


If this is not the right forum to ask these questions, any idea where I can get some answers?



YES...
Me and Stephan do the Forum Support.... BUT we both not fly Airbus (Boeing Forever !! :P :P )..... And Stephan use not FS2020 and myself i use it just a little bit ( we both remain in P3D for the moment)
So...
I can guide you to the right way.... And i can build you configs if you know what you need....
BUT
Direct FS2020 Airbus FBW Support must be done by the Pro Users!!!!!
You find them on our Discord ! https://discord.gg/99vHbK7
Ask in the FS2020 Subsection.... Pretty sure 80% of these guys use the FBW and know the systems !

If you have other questions or need help with the configs you can meet myself and Stephan on Discord, too.... Mostly Wednesday and Thursday Evenings UTC+1
Good Luck !
2021-12-07 00:54
icon