I'm having an issue with the commands with some buttons on the the zibo 737 not working.
My script is:
Code: Select all
gs_commands={}
gs_commands[112]='laminar/B738/EFIS_control/capt/map_mode_dn' -- F1
gs_commands[113]='laminar/B738/EFIS_control/capt/map_mode_up' -- F2
gs_commands[114]='laminar/B738/EFIS_control/capt/map_range_dn' -- F3
gs_commands[115]='laminar/B738/EFIS_control/capt/map_range_up' -- F4
gs_commands[116]='laminar/B738/EFIS_control/capt/push_button/tfc_press' -- F5
gs_commands[117]='laminar/B738/EFIS_control/capt/push_button/wxr_press' -- F6
gs_commands[118]='laminar/B738/EFIS_control/capt/push_button/sta_press' -- F7
gs_commands[119]='laminar/B738/EFIS_control/capt/push_button/wpt_press' -- F8
gs_commands[120]='laminar/B738/EFIS_control/capt/push_button/arpt_press' -- F9
gs_commands[121]='laminar/B738/EFIS_control/capt/push_button/data_press' -- F10
gs_commands[122]='laminar/B738/EFIS_control/capt/push_button/pos_press' -- F11
gs_commands[123]='laminar/B738/EFIS_control/fo/push_button/terr_press' -- F12
function gs_handler(button, direction, ts, flags, makecode)
print('Callback for device: button ' .. button .. ', direction '..direction..', ts '..ts..', flags '..flags)
if direction == 1 then
com = gs_commands[button]
if (com ~= nil) then
print('Calling XPL command ' .. com)
lmc_xpl_command(com)
end
return true -- handled
end
end
Code: Select all
2020-07-09 17:45:58:254 [XPLLUMplugin 20220]: XPL doesn't know command laminar/B738/EFIS_control/capt/push_button/tfc_pre
2020-07-09 18:14:18:140 [XPLLUMplugin 20220]: XPL doesn't know command laminar/B738/EFIS_control/capt/push_button/arpt_pr
Is this a deliberate limit or have I found a bug? I was going to open an issue on github but wanted to check first.