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
joesonw
Posts: 4
If anyone has tried to setup Master Warning/Caution clear buttons in X-Plane (with TBM900 for my case), they would immediately having trouble getting it work. Because it requires continous command press to clear it, send a single command over would not cut it.

So here is my solution (using FlyWithLua)

This is the FlyWithLua code
iconlua:
 
create_command("FlyWithLua/begin_master_wraning", "", "beginMasterWarning()", "", "")
create_command("FlyWithLua/end_master_wraning", "", "endMasterWarning()", "", "")
create_command("FlyWithLua/begin_master_caution", "", "beginMasterCaution()", "", "")
create_command("FlyWithLua/end_master_caution", "", "endMasterCaution()", "", "")
 
function beginMasterWarning()
    command_begin("sim/annunciator/clear_master_warning")
end
 
function endMasterWarning()
    command_end("sim/annunciator/clear_master_warning")
end
 
function beginMasterCaution()
    command_begin("sim/annunciator/clear_master_caution")
end
 
function endMasterCaution()
    command_end("sim/annunciator/clear_master_caution")
end
 


Here is my MobiFlight setup for Master Warning Clear Button




(in case of anyone having troubles seeing these pictures, here is the link https://imgur.com/a/KYrBl6c)
2023-04-03 07:09
icon