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
dmso
Posts: 2
Dear Reader(s),
Stupid question perhaps, but I can't seem to read strings like (A:NAV NAME,String) and output them to an LCD screen (output is always 0). Am I missing something here?

Also, I wonder if there is a WASM variable which I can use to identify the current aircraft? I currently use (A:MACH MAX OPERATE,Mach) which is fairly specific for a given airframe, but perhaps there is something better. My mobiflight box is designed to work with most aircraft and I use preconditions for aircraft specific inputs (like e.g. a map range rotary encoder).

Really impressed by mobiflight btw, the workflow/structure of it is genius.
Thanks!
2022-04-05 08:08
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
Hi
Basically MF is be able to read and handle Strings.

If this not work for you it can have many reasons..... I not be able to check this without deeper informations or by using a shared screen season to see what happen!

1. The Raw Data is wrong.... So we need to confirm if the Variable is correctly a string in real.
2. Wrong settings in MF
3. Wrong Syntax.... Specialy if we handle strings or deeper if we made conditions with strings or use them as refference then we need a 100% accurate syntax.
4. Simply a Empty Data.... I expect Nav Name String is something like the VOR Label Name. No active VOR simply means no Name.... And a Empty Zero Terminated String show "0" ( and not as lots of people expect a Space).

About 2nd Question....
Yes it is. Also as a string !
It should be the Var (A:TITLE,String)
Please try it out.
Good Luck !
2022-04-05 13:45
Avatar
dmso
Posts: 2
Thank you so much for your reply!
Could you please elaborate on what MF settings I could change?
Even the (A:TITLE,String) only returns a 0 with me, whatever I do (completely clean config file etc.)...
Thank you in advance!
2022-04-05 18:34
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
I not tested this myself.... I can do maybe tomorow.

But the much more profitable way would be a little meeting via DISCORD !

There we can Talk togehter via Headset and i can share my screen ( or you can share yours).
So we can simply build together a example and test the behavoiur of the FS2020 here.

Please Call me on Discord tomorow.... Or simply call another user via a request in the puplic channels.
Pretty sure one of our Mods or Power users will help.
Else if nobody reply.... wait till i´m online, then i will take care about this !
Good Luck !
2022-04-06 00:46
Avatar
highzur
Posts: 1
Hello guys
I'm facing exactly the same issue, with A:TITLE. Could you please share the solution you came up with on Discord? I don't with it there either.
Thanks
highzur
2023-03-17 09:36
icon