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
KEdmondson1970
Posts: 17
Using FS2020 with the latest MF and FSUIPC versions. I'm trying to get a 3-way toggle that is set for ON-OFF-ON to command the OFF-TAXI-LDG toggle in the TBM930. I cannot for the life of me get the offsets right so that it works correctly as you flip the switch up and down. Has anyone successfully made this work yet?
2021-01-29 01:23
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Is the Problem the "FS2020" Offset/Event you not be able to handle correctly OR is your Problem the Basic usage of a ON-OFF-ON Switch ?

In Mobiflight a ON-OFF-ON Switch is technical a row of TWO single Buttons. Mostly those switches got 3 Pins. One is the "+" from upper Switch.... One is the "+" from Lower Switch and finaly the last is the GRD combined from Both switches.

You wire in MF the first "+" to a Mega Pin (e.g. Pin 5) and the other "+" to a other Pin ( e.g. Pin 6) . The GRD Pin is wired to a GRD Pin on the Mega.
In Devices you create TWO Button Devices.... One on Pin5 the other on Pin6 in this example. Finaly all get Uploaded to the Board.

Logic:
If Switch is in UPPER Position then the upper "button" is Pressed and the Pin is High. Same time the lower Button is currently released and Pin is Low.
If the Switch is in MIDDLE Position then BOTH Buttons are released ( One was released already.... The other where you come from get released while this moving action)
If the Switch is in LOWER Position then the Upper button is currenty released and the lower button is pressed.

In MF Logic:
For Config 1 ( Upper Button/Pin) we say.... ON PRESS use the command that set the Sim Switch in UPPER Position. ( OFF in your case)
For Config 2 (Lower Button/Pin) we say.... ON PRESS use the command that set the Sim Switch to LOWER Position (LDG in your example)
To handle the Middle Position we use in BOTH Configs the RELEASE .... Both releases set the same command to the the Sim Switch to MIDDLE Position (TAXI as you say)

Result: Moving switch in Upper or lower Pos controll one of the PRESS functions.....
Setting switch in Middle Pos (whatever from Down to Middle or from Up to Middle) ocure in a Release of the switch wehre you come from.

**********************
I not know the correct Offsets / events or Simconnect Events. But the System should be clear now and work if you use the right commands !
Good Luck !
2021-01-29 02:26
Avatar
KEdmondson1970
Posts: 17
Thank you for that explanation. I was able to get the switch working correctly in X-Plane 11, and now I am planning to go back to FS2020 and apply the same logic. Seems it would have been easier to understand had Daher made the panel with OFF in the middle position, which would match up to OFF on the toggle. Thanks again!
2021-01-30 14:58
Avatar
KEdmondson1970
Posts: 17
It still doesn't work. I believe it has to do with the way MSFS processes those functions. Instead of having "on" and "off" assignments, such as for the taxi lights, it is done via "toggle". For example, if you want to turn on the taxi lights (in the TBM930) you have to assign "toggle taxi lights." For landing lights, you have to assign "toggle landing lights." This is different from XP11. XP11 has an assignable function of "set landing lights switch to taxi". So it sets the switch in the sim to a set position, versus a toggle.

I have tried every combination of "toggle taxi lights" and "landing lights toggle" to press and release and just cannot get it to work. I think the logic is getting confused where when releasing one button it needs to press another, and MSFS isn't recognizing both commands coming from MF.

If the taxi lights and landing lights had their own 2-way switch, this would be no problem. Or if the lights on/off were processed independently. But having them assignable as a "toggle" seems to be the issue. If anyone has any further tips or success, let me know! Until then, I guess I'll have to stick with XP11 for my TBM cockpit.
2021-01-30 16:46
Avatar
KEdmondson1970
Posts: 17
And further, I believe I have confirmed it is MSFS that is the problem by the following. I assigned "toggle taxi lights" to ALT+J on the keyboard, and "toggle landing lights" to "CTRL+SHIFT+L". If the cockpit switch is in the "off" position, you can select either keyboard command and it works. However, if you have the landing lights ON and try the keyboard command to switch to taxi lights, it doesn't do anything. You have to turn the landing lights OFF first, then enter the command for taxi lights. And in fact, if you try to activate the taxi toggle command while the switch is in landing lights position, not only does it not work, but it then blocks the landing light toggle command from working.

The bottom line is it appears to be the way the keyboard assignments work in FS. If MS would get rid of the toggle command and just make it on-off, I think everything would then work fine.
2021-01-30 16:57
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
A 3 Way Switch is based on 3 Individual Commands. So a "Toggle" is not usefull here.

Normaly we work here with a Offset and 3 Values.... E.g. 0,1,2 whatever position is used.
With Events we would need 3 Individual Events .... Or One event again wioth a Parameter System so we can clarly say " SET it to Position x"

BUT

If i understand your System as you explane it should work.... And you not need to SET the Middle Position.... right ?
Lets Say UP is Taxi .... Middle is OFF and DOWN is Landing. .....
Then the key is to use for Press and Release 2 Time the same toggle. So Upper switch use 2 time "Toggle taxi lights" and lower Switch use 2 Time "toggle landing lights"
If you move your switch from OFF to UP then it activate it..... If you move it from Up to OFF it disable it..... And Now in case it´s off BOTH Toggles are working again.

With OFF in the MIddle there is no situation you like to directly swap from Landing to Taxi or reversed.

Not Perfect but should work.... right ??
Good Luck !
2021-01-31 16:29
Avatar
CmdrJk
From: Germany
Posts: 4
I just figured this one out for the fbw a320 Mod. It now works with an on-off-on switch. Had to trial and error a bit. For the Taxilights I use the Taxilight_Toggle FS2020 event (not the legacy event). That switches them on/off. The Airbus has an additional setting for T/O. I use the same Event ID (not FS2020), which I use for the landing light switches, but with a different parameter (got this one from the fsuipc console). For switching the front wheel light to T/O I use "Landing_Lights_Toggle" / Parameter 1. For switching the Landing Lights on I use the "Landing_Lights_On" Event for On with Parameter 2 for the left landing light, and Parameter 3 for the right landing light. For switching them off, I use the "Landing_Lights_Off" Event with the same parameters.

Maybe those events also will work for you...

The only thing I haven't figuered out yet, is the retraction of the landing lights. They're retracted into the wings during flight. Maybe someone can help with that one?

Regards, Jakob :)
2021-02-09 20:55
Avatar
Rotordan
Posts: 7
Hi Jakob,
Did you figure out the retracting part of the landing lights? I have a similar configuration in terms of switches, and so far middle-ON control the off-on of all landing lights (I am still figuring out how to separate Left and Right). The ON-Middle of the switch is a big mystery, I don't get the landing lights to retract....

Thanks,
2022-11-02 20:11
icon