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
einclick
From: Stuttgart, Germany
Posts: 9
Supporter
To be able to have the current cockpit situation to be in sync with the switches of my panel i'd like to have the retrigger functionality to be run when mobiflight is starting.
Currently i just found the possibility to use an input event.

Is there a way to start the retrigger functionality whithout an input event but as part of the "start" procedure of mobiflight?
2022-03-12 14:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

This is a feature request !
We plan for this in the next Version 9.4 ( or latest at V 10.0.0) .
Currently we like to offert this as a checkmark Option in the Settings Tab.
So user can define YES/NO if the Retrigger should be run "one time" after MF is clicked to RUN .

Until this is possible you need to press your button manualy OR you can use the new "Trigger Command by Sim Variable Change" Tool to build this Config improvisional.
Good Luck !
2022-03-12 15:18
Avatar
einclick
From: Stuttgart, Germany
Posts: 9
Supporter
You are so fast, pizman! A lot of professional support desks can take you as a good example.
That this feature is on your roadmap sounds good :thumbup:

Anyway, I wanted to try your proposal for the intermediate solution with the trigger command. Can you/anyone point me to an example how the trigger variable can be used? The description in the notes for Release V9.3 was not really self-explanatory for me.
2022-03-12 19:23
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Yeah.
The Release Video comes the next days.... and hopefully also a little tutorial where Sebastian show a usecase for the new feature.

At the moment the most easy way would be to set a Button to it. You can also highjack a other button if you not like a unrealistic system.
For example you can use in a Being 737 the Ignition Switch. Normaly this switch is not used while standard procedures. So you could set the Retrigger simply as a second command to it.
Means always if you switch Ignition from Left to Right or from Right to Left, then the retrigger is fired one time.

********

The new logic also workes.... You just need a indication.
With the new tool we can say "IF a sim situation change and fit a defined situation THEN do something.
For example IF Virtual Master Battery Switch is chnage status ( ON to OFF or OFF to ON ) we like to execute the command "Start Retrigger"

How to do....

You create a OUTPUT Config ....
You choose for the Indication..... E.g. you read the virtual Master Battery Switch.
In the DISPLAY Tab you now choose for INPUT ACTION ( instead of the preselected "Output Device" in the upper line)
NOW you can choose instead to a Device like LED, Motor or so on a INPUT Command !

You must choose now between On Press/Release ( Means Config now do soemthing on Press (1) and soemthing else on Release (0) ) OR you choose for ON CHANGE
Means the Config do always the same action if the Value of the Config change !

Lets say you choose for Master Battery Switch Variable and for ON PRESS you say " Mobiflight Retrigger" .
This means Always if from now the Virtual Battery Swtich change its status and is now set to "1" Mobiflight will execute the Retrigger System!

**************

NOTE: As i said... A Fake Button is much more logical and easy. The new system is basically build for other things. But for sure. You can use it if you like !
Good Luck !
2022-03-12 19:56
Avatar
Captain_Johnny
Posts: 21
Hi,

I'm quite new to this, so thanks for a great product! :)

Regarding Sync / Trigger (AUTO) on startup - has this been implemented yet in a recent update, or do you expect it to be in the next couple of months?

I'm just doing some building at the moment, and it's not something I'd considered til I noticed in a recent tutorial that buttons were sometimes not in sync until toggled - and I'd not prefabricated it into my overhead acrylic cutouts, so I'd have to look for an alternative way to do it (if I can't auto trigger a sync at startup).

Many thanks.
2023-01-03 05:54
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

This is a old Topic... And i think you misslead my posting from 03/22

We still plan for the "Auto Sync at Startup" .... As i know its finished in Alpha Testing and will come soon.

The last posting was realted to the (that time) new feature of "Input Actions".
This feature allow to execute something if a special condition in Sim is true.

So we could say with this tool for example .... "If Altitude of Aircraft in Sim increase above 10.000 then execute one time XXXX and this can be for example the Sync Function.

So People who not like to build a switch for this function could say.... If I run Mobiflight and MF detect the Landing Lights are OFF (Systemstart) then it should fire in backround the Sync Function .

*****

Summary:
This is just a wporkarround for now.
With next version(s) we will get the "Sync on Startup Option".
Till then i recommend to use a Fake Button for now.
Good Luck !
2023-01-05 22:37
Avatar
Captain_Johnny
Posts: 21
Thanks for this.

I was thinking further though and wonder if it's possible to resolve the following potential problem with the 'retrigger':

Some of my MSFS2020 generic buttons do not have separate ON/OFF assignments, so I have had to use a TOGGLE assignment for them.

If I execute a retrigger overall, then the toggle switches which were originally not in sync will now be in sync, but those that were already in sync will now be out of sync.

I thought of doing 2 x retrigger events, but that would result in the opposite to my comments above, where some toggles would now be out of sync, and the others in sync.

Do you think there is an easy solution to this?
2023-01-21 06:31
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconCaptain_Johnny:


Do you think there is an easy solution to this?



hhhm....

Best solution.... Use same Input type like in Sim. If the Sim Aircraft use a Toggle Button (e.g. to activate Landing Lights) then you should not use a latching switch instead.
If problem is that you already use the right switch ( latching like in sim) BUT badly the Sim not offer a SET event and only just a toggle.... Than your in trouble.

Soluton here is mostly possible.... By make a logic within the Input Command (RPN Code) .

Example:
Lets say you just have a Toggle event for the Landing Lights but you use a latchoing switch with a fixed ON and OFF Position.....
If you can read the Status of the Virtual switch ( or the satus if Landing Lights in Sim are ON or OFF) then you can use this Information as a condition.
E.g for ON Position you would say something like If Virtual Landinglights are currently OFF then send the Toggle.... If NOT do nothing.
For OFF Position Inverted.... Here we send Toggle only if Sim System is currently ON.

Example Code from a other Input....
iconCode:
(A:ELECTRICAL MASTER BATTERY:2, Bool) 1 == if{ 2 (>K:TOGGLE_MASTER_BATTERY) }

It check the AVar and do a action only if its 1
Good Luck !
2023-01-21 22:33
Avatar
Captain_Johnny
Posts: 21
Ah, sounds good, thanks.

If I were to code those CONDITIONS into my toggle events, would the CONDITION code also be executed if I were to execute a RETRIGGER command?
2023-01-22 12:13
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Yes

The "Retrigger Command" is a pretty basic logic....

In easy words.... It check after start it if every single Input (Button, Switches) are currently RELEASED..... If Yes then it check if those Configs include a RELEASE Action.
If Yes it fire it exactly one time.
IN second run it check every button if its currently Pressed. If yes it check if those buttons got a ON PRESS Command and if yes it fire it one time.

In your case.....

Your Inputs got Both.... a On Press and a On Release Command.
On Press say.... Check if the Vortual switch is OFF..... If Yes toggle to ON
The On Release say.... Check if Virtual switch is currently ON.... If Yes send Toggle to move it to OFF.

So.... If you retrigger then one of the two ( the press or release whatever is currently is in use in your real cockpit) is executed.
So it will check if Switch is in opossit direction..... If Yes it toggle.... If not (so its still simmular to the real switch) then it do nothing !
Good Luck !
2023-01-23 01:21
icon