I found this cool free project called sidekick from flapmodster.com
It adds a couple of switches for the honeycomb bravo.
I want to build it for the pmdg 737 for msfs.
The code however looks like it is for xplane. Is it possible to convert to msfs?
I have zero knowledge of coding.
Thanks for the help!
Code: Select all
-- Landing Gear Horn Cutout button
function horn_co_press()
xpl_command("laminar/B738/alert/gear_horn_cutout", 1)
end
function horn_co_rls()
xpl_command("laminar/B738/alert/gear_horn_cutout", 0)
end
hw_button_add("horn_cutout", horn_co_press, horn_co_rls)
-- parking brake light
park_brake_light= hw_output_add("pb_light", false)
function led_chg(position)
if position == 0 then
hw_output_set(park_brake_light, false)
else
hw_output_set(park_brake_light, true)
end
end
xpl_dataref_subscribe("laminar/B738/annunciator/parking_brake", "FLOAT", led_chg)
-- parking brake handle
function pb_move(position)
xpl_dataref_write("laminar/B738/parking_brake_pos", "FLOAT", position)
end
park_brake= hw_switch_add("pb_switch",1, pb_move)
function lt_switch_move(position)
xpl_dataref_write("laminar/B738/engine/mixture_ratio1", "FLOAT", position)
end
lt_start_lever= hw_switch_add("left_startlever", 1 , lt_switch_move)
-- No 2 start lever
function rt_switch_move(position)
xpl_dataref_write("laminar/B738/engine/mixture_ratio2", "FLOAT", position)
end
rt_start_lever= hw_switch_add("rt_start_lever", 1, rt_switch_move)