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
terbucn
Posts: 1
Would it be possible in future to include something like Advanced mode in MobiFlight. This mode would do the following:
I would like to use the software only to send and receive data between FSUIPC and Arduino. I would write my own program for Arduino - the software on computer would send the data that I would chose to Arduino. In Arduino will be then this data freely used. Software on computer would also scan COM port for the required data, which is being sent by Arduino.
Is there perhaps any existing program that already does that? I would like to use this for the P3D v4.
2017-11-07 18:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I would say... NO ! .

What you request sounds cool and THAT is what i looking for, too in the past.... But after 1-2Years of Mobilfight i see that THIS is not usefull finaly and not possible.

If you be able to write Arduino sketches that DO what you want.... Then you should be able to write a little script, too that do what you request here.

All You need is a self running EXE File that Scan Com Port for Inputs and that "talk" to FSUIPC.
FSUIPC support lots of different Scripting languages with it´s SDK. Simply use THAT what you like.

Finaly.... Mobiflight is build for People that have no skills in programming....
Otherwise Users that can write programmes should be able to create there "own" Mobiflight Alternate themself.

i Think summary that it is not possible cause the syntax, used Programming Language and so on must be compatible with the own written sketch. Whatever Sebastian will provide this.... Then YOUR Sketch MUST use same logic like THIS Programm... And then its again not individualy and you got simmular sitation like now with Mobiflight.
Good Luck !
2017-11-08 13:03
Avatar
buddym
Posts: 19
This sounds sort of like Link2FS, no?
2017-11-15 03:46
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
i never use it (Link2Fs).... just hear about from other guys here.

If i informed correct this tool is good ( if you be able to script a bit youreself.... But it have a limit of arduinios.... complex Cockpits are not possible i think ( Not garantee thats correct)

Basicly....

Maby you should think about the "other side"
I think Mobiflight do a fantastic Job on Arduino Side.... Shure you need to use for example Max7219 cause the Mobi Code only support this.... Or you can not make changes for special things.... BUT. I will say nearly everything on hardwareside is supported by Mobiflight in a usefull kind.

The problem of Mobiflight for Advanced Users is Mobiflight Connector itself..... To provide a easy Interface without own scriptingskills are needed we have to cut out some verry important features.....
For Example it is not posible to write Offsets only in case of a IF function.... A Write MUST execute always by a physical Input of a switch/encoder.
you can not say for example : Read Offset A If Offset A increase bigger then 3 THEN Write Offset B to 999 .
OR it is also not possible to calculate 2 Offsets in a function.... For Example "Multiply Offset A with Value of Offset B" can not be used.

The solution:
You can use LUA !
If you got basic or davanced programming skills you can write little LUA scripts that can be implement into FSUIPC itself.
This scripts can do everything, that is not possible with mobiflight at the moment.

****

Finaly..... Maby i see it to positiv cause i support Mobifilight .... But i not see a Problem in the Firmware.... ALL Can be done if you use the recommend hardware.
Advanced Users also can make improvisional solutions by LUA scripts for things like blinking LED, 16 Segment Displays and so on.... All without changing Mobiflight itself !

Hope thats what you need.
Good Luck !
2017-11-15 06:16
Avatar
jonnycool06
Posts: 2
iconpizman82:

Hi

I would say... NO ! .

What you request sounds cool and THAT is what i looking for, too in the past.... But after 1-2Years of Mobilfight i see that THIS is not usefull finaly and not possible.

If you be able to write Arduino sketches that DO what you want.... Then you should be able to write a little script, too that do what you request here.

All You need is a self running EXE File that Scan Com Port for Inputs and that "talk" to FSUIPC.
FSUIPC support lots of different Scripting languages with it´s SDK. Simply use THAT what you like.

Finaly.... Mobiflight is build for People that have no skills in programming....
Otherwise Users that can write programmes should be able to create there "own" Mobiflight Alternate themself.

i Think summary that it is not possible cause the syntax, used Programming Language and so on must be compatible with the own written sketch. Whatever Sebastian will provide this.... Then YOUR Sketch MUST use same logic like THIS Programm... And then its again not individualy and you got simmular sitation like now with Mobiflight.



I'm so glad I found this thread, because this is actually what I'm looking for as well! I want to make a more versatile controller that can simply talk to FS through Mobiflight, and as a super beginner programmer myself (literally learning how to code arduinos for this project), it would be incredibly useful to have this, similar to how Bits and Droids operates. I do get that it's a very niche request but if it gets enough requests, would this be possible? Meanwhile I'll look into the method you mentioned, to write some simple scripts to scan COM inputs and talk to FSUIPC :) Either way, loving Mobiflight a lot and I think this is sorely needed in the community, so glad that it exists now and has so much community support!

Is it alright if you say a bit more about these LUA scripts? Seems like this can be an option too.
2024-01-14 14:08
icon