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!
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.
Current Setup:
Prepar3d v4.3
Airecraft: Aerosoft CRJ 700 (new release)
I am able to control most inputs using the macro feature and assign it to a key combination. My issue is when it comes to LED outputs.
The CRJ700 aircraft for example has an auto-pilot that when the button is pushed a small LED light comes on next to the item. For example: I push heading and the heading LED comes on.
This aircraft does not support traditional FSUIPC.
I need someone to explain to me in the most simplest terms how I can have these LED's turn on in the event I push the button having assigned the button using a macro.
Currently in the LED output screen in Mobiflight controller all I see is an option to select the FSUIPC counterpart.
I am doing a full cockpit CRJ build and I would like to use Mobiflight Controller and the arduino but I am hitting a brick wall on this issue.
Please help!!! Solve this issue and let me send you a little bitcoin for the help!
Please note, not every plane is suitable for building a home cockpit. Therefore, you should already have the necessary documents in the planning phase to ensure implementation.
The best way to ask the source, so the developer or distributor of your software, in your case Aerosoft.
Either you get there hints on how you get to the required data or you reach a place where you can ask. In the worst case, you get the answer that your project is not feasible.
In advance, you can ask Aunt Goolge for "Aerosoft CRJ 700 Home Cockpit" or ask in the relevant forums.
Aerosoft crj don't use standard FSUIPC offset. You have to write lua script to read its Lvars to free FSUIPC offset, then MF can read these offset. Please refer to other add on forum and read about aerosoft Lvars. Quick google will let you download Linda script version 0.6 for crj. I believe it for vrinsight mcp hardware, but you can browse through and find Lvars names for crj. It is limited but useful for basis mcp panel. Sorry but can't help much since I don't flight crj. Good luck.
Stephan and Thatchi still say the importantn things....
Mobiflight is based on FSUIPC.
For inputs you have some other ways (Keysend, VJOy etc) but Outputs are basicly just readed FSUIPC Offsets and nothing else.
If your Aircraft support information NOT to FSUIPC Offsets then you can not read it with Mobiflight.
BUT: The Data is pretty sure internal in the System.... Cause the AddOn itself workes.... So there must be Data somewhere !
Summary the situations is easy....
Way A : Use a AddOn aircraft that work over FSUIPC .... Then you have no Problems.
Way B : If you use a other AddOn ( Like Aerosoft with Lvars) then YOU must build a programm (or find a prebuild software) that "compile" the Data to a FSUIPC Offsetrange. Then Mobiflight again can read this Offsets and show it in your Cockpit !
Thanks everyone for the quick reply. I was able to resolve it. I received a copy of the L-vars for the new CRJ700 and was able to write a small LUA script that I placed in the modules folder. The script assigned a FSUIPC offset to the L-Vars. I then created a macro for the LUA script and assigned it to a key combination. I then created an FSUIPC input into MF using the newly created FSUIPC offset. Works great. The only issue I have is for the output. I am able to create an LED output for the new FSUIPC offset but the light does not stay lit. Any ideas?
The script assigned a FSUIPC offset to the L-Vars. I then created a macro for the LUA script and assigned it to a key combination. I then created an FSUIPC input into MF using the newly created FSUIPC offset. Works great. The only issue I have is for the output. I am able to create an LED output for the new FSUIPC offset but the light does not stay lit. Any ideas?
Maby you go to much difficult steps.
Mobiflight got different Input Typs....
EventID and FSUIPC Offset here are maby not usefull cause your function is not existing there basicly.
If the Function itself is a LUA Macro/Script then then you can use the new "Trigger LUA Macro" Function of Mobiflight 7.5
Here you can directly fire a Macro if needed via a Input of a Switch for example
More comfortable is maby the "Key-send" or "Vjoy" System. Can you simply define your function in the Simulator/AddOn Aircraft to a Keycommand or a Joystickbutton ?
If yes then simmulate this Keypress/Joybutton direct in Mobiflight.
Also a combination is usefull..... If you define the Function in a LUA Macro in FSUIPC then you can set it to a "Key Combination" there.... Simply use "KEY SEND" in Mobiflight and execute this Key Command... Then FSUIPC will run your script !
*******
Summary.... I´m not a programmer and my skills in LUA are still poor.
So i not understand the logic why this guy in the linked topic try to "Input and Output " a function with same Offset. ( Whatever its possible sure)
I personaly recommend:
Define a range of Offsets ( Free to use) and make ONE Script that read all neeeded Output Lvars and support data to this Offsets ( READ ONLY)
For Inputs simply work if possible with Key and Joystick Inputs direct in AddOn.... All that is not possible with Keysend i would use individual Lua Macros ( indipendend from the Output logic)