I am using FlyWithLua to customize my joystick buttons.
Most everything works (thanks Hotstart by including the DataRefs and Commands in the documentation).
My problem is with the master caution and master warning commands
It looks like they are using the default xplane command (sim/annunciator/clear_master_caution)
When I run a command_once statement, nothing happens.
The other two functions work fine
Can anyone tell me where I am going wrong?
Thanks
function tbmuser_pitot_heat_on_LR()
command_once("tbm900/actuators/ice/pitot_r_on")
command_once("tbm900/actuators/ice/pitot_l_on")
end
create_command("tbmuser/test/pitot_heat", "pitot_heat_on_LR", "tbmuser_pitot_heat_on_LR()", "", "")
function tbmuser_pitot_heat_off_LR()
command_once("tbm900/actuators/ice/pitot_l_off")
command_once("tbm900/actuators/ice/pitot_r_off")
end
create_command("tbmuser/test/pitot_heat_off", "pitot_heat_off_LR", "tbmuser_pitot_heat_off_LR()", "", "")
function tbmuser_alarm_off()
command_once("sim/annunciator/clear_master_caution")
command_once("sim/annunciator/clear_master_warning")
end
create_command("tbmuser/test/alarm_off", "alarms_off", "tbmuser_alarm_off()", "", "")