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
Voyager
Posts: 11
I installed a push-pull switch for the Cessna 172 fuel shutoff valve. I have X-Plane 11 and 12 with an Arduino Mega 2560 and XPUIPC. They run my compass and parking brake, so I know they are set up correctly.

I tried Event ID: TOGGLE_FUEL_VALVE_ALL. It does not have an effect. I also tried the various Fuel Setup and Select functions with no success.

The hardware function TOGGLE_FUEL_VALVE_ALL works in MSFS2020, so I know the switch and wiring are ok. Any assistance to resolve the issue with X-Plane 11/12 would be greatly appreciated.
2023-09-26 04:21
Avatar
Voyager
Posts: 11
Would someone be kind enough to write a Mobiflight LUA program to operate the Cessna-172 Shutoff Valve for both MSFS2020 and X-Plane 11/12?

I believe the parameters are as follows:
MSFS2020: TOGGLE_FUEL_VALVE_ALL

X-Plane 11/12:
By looking at the datarefs I determined the following three commands change when the fuel shutoff valve in X-Plane is pushed in/pulled out:
sim/cockpit2/fuel/fuel_tank_selector=4,0
sim/cockpit2/fuel/fuel_tank_selector_left=4,0
sim/cockpit2/fuel/fuel_tank_selector_right=4,0
2023-09-27 22:07
icon