From 65555878811d6aab6b0a9a304f014bcbaafe6164 Mon Sep 17 00:00:00 2001 From: norberttak Date: Fri, 24 Jun 2022 07:03:03 +0200 Subject: [PATCH 1/5] Config file for Felis TU-154 Signed-off-by: norberttak --- config/tu154/xpanel.ini | 114 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 112 insertions(+), 2 deletions(-) diff --git a/config/tu154/xpanel.ini b/config/tu154/xpanel.ini index 0adb0d2..280a3a1 100644 --- a/config/tu154/xpanel.ini +++ b/config/tu154/xpanel.ini @@ -15,12 +15,13 @@ ; You should have received a copy of the GNU General Public License ; along with this program. If not, see . +;log_level="TRACE" +;script_file="tu154-script.lua" +aircraft_acf="tu154.acf" [device:id="aurduino_homecockpit"] vid="2341" pid="8036" -script_file="TU154-arduino-home-cockpit.lua" -aircraft_acf="tu154.acf" ;STROBE light [button:id="STROBE"] @@ -78,3 +79,112 @@ on_release="dataref:sim/custom/switchers/ovhd/sign_belts:0" [button:id="XPDR"] on_push="dataref:sim/cockpit2/radios/actuators/transponder_mode:2" on_release="dataref:sim/cockpit2/radios/actuators/transponder_mode:1" + +;Cockpit dome light +[button:id="DOME"] +on_push="dataref:sim/custom/lights/cabinl_flood_set:1" +on_release="dataref:sim/custom/lights/cabinl_flood_set:0" + +;---------------------- Saitek mUlti Panel ------------------------- +[device:id="saitek_multi"] +vid="6a3" +pid="d06" + +;AUTO_THROTTLE +[button:id="AUTO_THROTTLE"] +on_push="dataref:sim/custom/switchers/console/absu_speed_prepare:1" +on_release="dataref:sim/custom/switchers/console/absu_speed_prepare:0" + +;CS button on ABSU +[button:id="HDG"] +on_push="dataref:sim/custom/buttons/console/absu_zk:1" +on_release="dataref:sim/custom/buttons/console/absu_zk:0" + +;NVU button on ABSU +[button:id="NAV"] +on_push="dataref:sim/custom/buttons/console/absu_nvu:1" +on_release="dataref:sim/custom/buttons/console/absu_nvu:0" +; prepare: sim/custom/switchers/console/absu_nav_on + +;APR button in ABSU +[button:id="APR"] +on_push="dataref:sim/custom/buttons/console/absu_app:1" +on_release="dataref:sim/custom/buttons/console/absu_app:0" +; prepare: sim/custom/switchers/console/absu_landing_on + +;STAB button on ABSU +[button:id="AP"] +on_push="dataref:sim/custom/buttons/console/absu_stab:1" +on_release="dataref:sim/custom/buttons/console/absu_stab:0" + +;H (horizontal stab) button on ABSU +[button:id="ALT"] +on_push="dataref:sim/custom/buttons/console/absu_stab_h:1" +on_release="dataref:sim/custom/buttons/console/absu_stab_h:0" + +;V (speed hold) button on ABSU +[button:id="IAS"] +on_push="dataref:sim/custom/buttons/console/absu_stab_v:1" +on_release="dataref:sim/custom/buttons/console/absu_stab_v:0" + +;VOR1 button on ABSU +[button:id="REV"] +on_push="dataref:sim/custom/buttons/console/absu_az1:1" +on_release="dataref:sim/custom/buttons/console/absu_az1:0" + +;Flaps up & down handler +[button:id="FLAPS_UP"] +on_push="commandref:sim/flight_controls/flaps_up:once" +[button:id="FLAPS_DOWN"] +on_push="commandref:sim/flight_controls/flaps_down:once" + +;Vertical speed dial on ABSU +[button:id="TRIM_WHEEL_UP"] +on_push="dataref:sim/custom/switchers/console/absu_pitch_wheel:+0.8:15.0:-15.0" +[button:id="TRIM_WHEEL_DOWN"] +on_push="dataref:sim/custom/switchers/console/absu_pitch_wheel:-0.8:15.0:-15.0" + +[light:id="ALT_L"] +trigger_lit="dataref:sim/custom/lights/button/absu_stab_h:1" +trigger_unlit="dataref:sim/custom/lights/button/absu_stab_h:0" + +[light:id="AP_L"] +trigger_lit="dataref:sim/custom/gauges/console/absu_pitch_mode:2" +trigger_unlit="dataref:sim/custom/gauges/console/absu_pitch_mode:1" +trigger_unlit="dataref:sim/custom/gauges/console/absu_pitch_mode:0" +trigger_unlit="dataref:sim/custom/lights/absu_work:0" +;trigger_blink="dataref:sim/custom/lights/absu_work:1" + +[light:id="APR_L"] +trigger_lit="dataref:sim/custom/lights/button/absu_app:1" +trigger_unlit="dataref:sim/custom/lights/button/absu_app:0" + +[light:id="HDG_L"] +trigger_lit="dataref:sim/custom/lights/button/absu_zk:1" +trigger_unlit="dataref:sim/custom/lights/button/absu_zk:0" + +[light:id="NAV_L"] +trigger_lit="dataref:sim/custom/lights/button/absu_nvu:1" +trigger_unlit="dataref:sim/custom/lights/button/absu_nvu:0" + +[light:id="IAS_L"] +trigger_lit="dataref:sim/custom/lights/button/absu_stab_v:1" +trigger_unlit="dataref:sim/custom/lights/button/absu_stab_v:0" + +[multi_display:id="MULTI_DISPLAY_UP"] +line="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L" +line="on_select:SW_IAS,dataref:sim/custom/gauges/speed/ias_yellow_left" +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[multi_display:id="MULTI_DISPLAY_DOWN"] +line="on_select:SW_ALT,dataref:sim/custom/gauges/compas/pkp_helper_course_L" +line="on_select:SW_VS,dataref:sim/custom/gauges/compas/pkp_helper_course_L" +line="on_select:SW_CRS,dataref:sim/custom/gauges/compas/pkp_obs_L" + +[button:id="KNOB_PLUS"] +on_push="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359" +on_push="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm:1:0:359" + +[button:id="KNOB_MINUS"] +on_push="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L:-1:0:359" +on_push="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm:-1:0:359" From 2c4bc4f243d5ad3e9d8a45ec2ae371fd0b968f36 Mon Sep 17 00:00:00 2001 From: norberttak Date: Fri, 24 Jun 2022 07:03:50 +0200 Subject: [PATCH 2/5] Config file for the default C172SP Signed-off-by: norberttak --- config/default c172/xpanel.ini | 89 +++++++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 8 deletions(-) diff --git a/config/default c172/xpanel.ini b/config/default c172/xpanel.ini index 24c9527..7795a8f 100644 --- a/config/default c172/xpanel.ini +++ b/config/default c172/xpanel.ini @@ -15,22 +15,24 @@ ; You should have received a copy of the GNU General Public License ; along with this program. If not, see . +;script_file="C172-arduino-home-cockpit.lua" +aircraft_acf="C172.acf" [device:id="aurduino_homecockpit"] vid="2341" pid="8036" -script_file="C172-arduino-home-cockpit.lua" -aircraft_acf="C172.acf" ;STROBE light [button:id="STROBE"] on_push="dataref:sim/cockpit/electrical/strobe_lights_on:1" on_release="dataref:sim/cockpit/electrical/strobe_lights_on:0" -;BEACON light +;BEACON & NAV lights [button:id="BEACON"] on_push="dataref:sim/cockpit/electrical/beacon_lights_on:1" +on_push="dataref:sim/cockpit/electrical/nav_lights_on:1" on_release="dataref:sim/cockpit/electrical/beacon_lights_on:0" +on_release="dataref:sim/cockpit/electrical/nav_lights_on:0" ;TAXI light [button:id="TAXI"] @@ -47,7 +49,7 @@ on_release="dataref:sim/cockpit/electrical/landing_lights_on:0" on_push="dataref:sim/cockpit/electrical/cockpit_lights:1" on_release="dataref:sim/cockpit/electrical/cockpit_lights:0" -;PITOT heat +;PITOT light [button:id="PITOT"] on_push="dataref:sim/cockpit/switches/pitot_heat_on:1" on_release="dataref:sim/cockpit/switches/pitot_heat_on:0" @@ -59,10 +61,81 @@ on_release="dataref:sim/cockpit2/radios/actuators/transponder_mode:1" ;Left Start Switch [button:id="START_L"] -on_push="commandref:sim/ignition/engage_starter_1:begin" -on_release="commandref:sim/ignition/engage_starter_1:end" +on_push="commandref:laminar/c172/ignition_up:begin" +on_release="commandref:laminar/c172/ignition_up:end" ;Right Start Switch [button:id="START_R"] -on_push="commandref:sim/ignition/engage_starter_1:begin" -on_release="commandref:sim/ignition/engage_starter_1:end" \ No newline at end of file +on_push="commandref:laminar/c172/ignition_up:begin" +on_release="commandref:laminar/c172/ignition_up:end" + +; -------------------- Saitek Multi Panel ---------------- +[device:id="saitek_multi"] +vid="6a3" +pid="d06" + +[button:id="HDG"] +on_push="commandref:sim/autopilot/heading:once" + +[button:id="NAV"] +on_push="commandref:sim/autopilot/NAV:once" + +[button:id="APR"] +on_push="commandref:sim/autopilot/approach:once" + +; AP disconnect button +[button:id="AP"] +on_push="commandref:sim/autopilot/servos_off_any:once" + +[button:id="ALT"] +on_push="commandref:sim/autopilot/altitude_hold:once" + +[button:id="REV"] +on_push="commandref:sim/autopilot/back_course:once" + +;Flaps up & down handler +[button:id="FLAPS_UP"] +on_push="commandref:sim/flight_controls/flaps_up:once" +[button:id="FLAPS_DOWN"] +on_push="commandref:sim/flight_controls/flaps_down:once" + +[button:id="TRIM_WHEEL_UP"] +on_push="commandref:sim/autopilot/vertical_speed_up:once" +[button:id="TRIM_WHEEL_DOWN"] +on_push="commandref:sim/autopilot/vertical_speed_down:once" + +[light:id="ALT_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/altitude_hold_status:2" +trigger_unlit="dataref:sim/cockpit2/autopilot/altitude_hold_status:0" + +[light:id="AP_L"] +trigger_lit="dataref:sim/cockpit/autopilot/autopilot_mode:2" +trigger_unlit="dataref:sim/cockpit/autopilot/autopilot_mode:0" + +[light:id="APR_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/approach_status:2" +trigger_unlit="dataref:sim/cockpit2/autopilot/approach_status:0" + +[light:id="HDG_L"] +trigger_lit="dataref:sim/cockpit/autopilot/heading_mode:11" +trigger_unlit="dataref:sim/cockpit/autopilot/heading_mode:9" + +[light:id="NAV_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/nav_status:2" +trigger_unlit="dataref:sim/cockpit2/autopilot/nav_status:0" + + +[multi_display:id="MULTI_DISPLAY_UP"] +line="on_select:SW_HDG,dataref:sim/cockpit/autopilot/heading_mag" +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[multi_display:id="MULTI_DISPLAY_DOWN"] +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[button:id="KNOB_PLUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_up:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_up:once" + +[button:id="KNOB_MINUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_down:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_down:once" From bef596eaf806726a3243543bd954221c2f62bd59 Mon Sep 17 00:00:00 2001 From: norberttak Date: Fri, 24 Jun 2022 07:04:38 +0200 Subject: [PATCH 3/5] Config file for Airfoil labs C172SP Signed-off-by: norberttak --- config/airfoillabs c172sp/xpanel.ini | 141 +++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 config/airfoillabs c172sp/xpanel.ini diff --git a/config/airfoillabs c172sp/xpanel.ini b/config/airfoillabs c172sp/xpanel.ini new file mode 100644 index 0000000..3f8ab19 --- /dev/null +++ b/config/airfoillabs c172sp/xpanel.ini @@ -0,0 +1,141 @@ +; Aircraft specific handler for Airfoillabs C172SP XPlane aircraft +; +; Copyright (C) 2022 Norbert Takacs +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + +;log_level="TRACE" +;script_file="C172-arduino-home-cockpit.lua" +aircraft_acf="Airfoillabs_C172SP_high_res.acf" + +[device:id="aurduino_homecockpit"] +vid="2341" +pid="8036" + +;STROBE light +[button:id="STROBE"] +on_push="dataref:sim/cockpit/electrical/strobe_lights_on:1" +on_release="dataref:sim/cockpit/electrical/strobe_lights_on:0" + +;BEACON & NAV lights +[button:id="BEACON"] +on_push="dataref:sim/cockpit/electrical/beacon_lights_on:1" +on_push="dataref:sim/cockpit/electrical/nav_lights_on:1" +on_release="dataref:sim/cockpit/electrical/beacon_lights_on:0" +on_release="dataref:sim/cockpit/electrical/nav_lights_on:0" + +;TAXI light +[button:id="TAXI"] +on_push="dataref:sim/cockpit/electrical/taxi_light_on:1" +on_release="dataref:sim/cockpit/electrical/taxi_light_on:0" + +;LAND light +[button:id="LAND"] +on_push="dataref:sim/cockpit/electrical/landing_lights_on:1" +on_release="dataref:sim/cockpit/electrical/landing_lights_on:0" + +;DOME light +[button:id="DOME"] +on_push="dataref:172/lights/int/int_spot1_push_v:1" +on_release="dataref:172/lights/int/int_spot1_push_v:0" + +;PITOT light +[button:id="PITOT"] +on_push="dataref:sim/cockpit/switches/pitot_heat_on:1" +on_release="dataref:sim/cockpit/switches/pitot_heat_on:0" + +;Transponder +[button:id="XPDR"] +on_push="dataref:172/av_panel/xpdr/xpdr_mode_v:4" +on_release="dataref:172/av_panel/xpdr/xpdr_mode_v:1" + +;Left Start Switch +[button:id="START_L"] +on_push="dataref:172/engine/starter_on_x:1" +on_release="dataref:172/engine/starter_on_x:0" + +;Right Start Switch +[button:id="START_R"] +on_push="dataref:172/engine/starter_on_x:1" +on_release="dataref:172/engine/starter_on_x:0" + +; -------------------- Saitek Multi Panel ---------------- +[device:id="saitek_multi"] +vid="6a3" +pid="d06" + +[button:id="HDG"] +on_push="commandref:172/autopilot/ap_hdg:once" + +[button:id="NAV"] +on_push="commandref:172/autopilot/ap_nav:once" + +[button:id="APR"] +on_push="commandref:172/autopilot/ap_apr:once" + +[button:id="AP"] +on_push="commandref:172/autopilot/ap_ap:once" + +[button:id="ALT"] +on_push="commandref:172/autopilot/ap_alt:once" + +[button:id="REV"] +on_push="commandref:172/autopilot/ap_rev:once" + +;Flaps up & down handler +[button:id="FLAPS_UP"] +on_push="commandref:sim/flight_controls/flaps_up:once" +[button:id="FLAPS_DOWN"] +on_push="commandref:sim/flight_controls/flaps_down:once" + +[button:id="TRIM_WHEEL_UP"] +on_push="commandref:172/autopilot/ap_up:once" +[button:id="TRIM_WHEEL_DOWN"] +on_push="commandref:172/autopilot/ap_dn:once" + +[light:id="ALT_L"] +trigger_lit="dataref:172/autopilot/atp_ALT_1:1" +trigger_unlit="dataref:172/autopilot/atp_ALT_1:0" + +[light:id="AP_L"] +trigger_lit="dataref:172/autopilot/atp_AP_BOX:1" +trigger_unlit="dataref:172/autopilot/atp_AP_BOX:0" + +[light:id="APR_L"] +trigger_lit="dataref:172/autopilot/atp_APR_2:1" +trigger_unlit="dataref:172/autopilot/atp_APR_2:0" + +[light:id="HDG_L"] +trigger_lit="dataref:172/autopilot/atp_HDG:1" +trigger_unlit="dataref:172/autopilot/atp_HDG:0" + +[light:id="NAV_L"] +trigger_lit="dataref:172/autopilot/atp_NAV_2:1" +trigger_unlit="dataref:172/autopilot/atp_NAV_2:0" + + +[multi_display:id="MULTI_DISPLAY_UP"] +line="on_select:SW_HDG,dataref:sim/cockpit/autopilot/heading_mag" +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[multi_display:id="MULTI_DISPLAY_DOWN"] +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[button:id="KNOB_PLUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_up:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_up:once" + +[button:id="KNOB_MINUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_down:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_down:once" From 61e17990baaab08536dbe619157fd394c5c0ecda Mon Sep 17 00:00:00 2001 From: norberttak Date: Fri, 24 Jun 2022 17:58:42 +0200 Subject: [PATCH 4/5] Config for Thradra DHC2 beaver Signed-off-by: norberttak --- config/Thranda DHC2/xpanel.ini | 151 +++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 config/Thranda DHC2/xpanel.ini diff --git a/config/Thranda DHC2/xpanel.ini b/config/Thranda DHC2/xpanel.ini new file mode 100644 index 0000000..3ab7a49 --- /dev/null +++ b/config/Thranda DHC2/xpanel.ini @@ -0,0 +1,151 @@ +; Aircraft specific handler for Thradra DHC-2 XPlane aircraft +; +; Copyright (C) 2022 Norbert Takacs +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + +;script_file="DHC2-cockpit.lua" +aircraft_acf="DHC2_Beaver.acf" + +[device:id="aurduino_homecockpit"] +vid="2341" +pid="8036" + +;STROBE light +[button:id="STROBE"] +on_push="dataref:sim/cockpit/electrical/strobe_lights_on:1" +on_release="dataref:sim/cockpit/electrical/strobe_lights_on:0" + +;BEACON & NAV lights +[button:id="BEACON"] +on_push="dataref:sim/cockpit/electrical/beacon_lights_on:1" +on_push="dataref:sim/cockpit/electrical/nav_lights_on:1" +on_release="dataref:sim/cockpit/electrical/beacon_lights_on:0" +on_release="dataref:sim/cockpit/electrical/nav_lights_on:0" + +;TAXI light +[button:id="TAXI"] +on_push="dataref:sim/cockpit/electrical/taxi_light_on:1" +on_release="dataref:sim/cockpit/electrical/taxi_light_on:0" + +;LAND light +[button:id="LAND"] +on_push="dataref:sim/cockpit/electrical/landing_lights_on:1" +on_release="dataref:sim/cockpit/electrical/landing_lights_on:0" + +;DOME light +[button:id="DOME"] +on_push="dataref:sim/cockpit/electrical/cockpit_lights:1" +on_release="dataref:sim/cockpit/electrical/cockpit_lights:0" + +;PITOT light +[button:id="PITOT"] +on_push="dataref:sim/cockpit/switches/pitot_heat_on:1" +on_release="dataref:sim/cockpit/switches/pitot_heat_on:0" + +;Transponder +[button:id="XPDR"] +on_push="dataref:sim/cockpit2/radios/actuators/transponder_mode:3" +on_release="dataref:sim/cockpit2/radios/actuators/transponder_mode:1" + +;Left Start Switch +[button:id="START_L"] +on_push="commandref:sim/ignition/engage_starter_1:begin" +on_release="commandref:sim/ignition/engage_starter_1:end" + +;Right Start Switch +[button:id="START_R"] +on_push="commandref:sim/ignition/engage_starter_1:begin" +on_release="commandref:sim/ignition/engage_starter_1:end" + +; -------------------- Saitek Multi Panel ---------------- +[device:id="saitek_multi"] +vid="6a3" +pid="d06" + +[button:id="HDG"] +on_push="commandref:sim/autopilot/heading:once" + +[button:id="NAV"] +on_push="commandref:sim/autopilot/NAV:once" + +[button:id="APR"] +on_push="commandref:sim/autopilot/approach:once" + +; AP disconnect button +[button:id="AP"] +on_push="commandref:sim/autopilot/servos_off_any:once" + +[button:id="ALT"] +on_push="commandref:sim/autopilot/altitude_hold:once" + +[button:id="REV"] +on_push="commandref:sim/autopilot/back_course:once" + +[button:id="VS"] +on_push="commandref:sim/autopilot/vertical_speed:once" + +;Flaps up & down handler +[button:id="FLAPS_UP"] +on_push="commandref:sim/flight_controls/flaps_up:once" +[button:id="FLAPS_DOWN"] +on_push="commandref:sim/flight_controls/flaps_down:once" + +[button:id="TRIM_WHEEL_UP"] +on_push="commandref:sim/autopilot/vertical_speed_up:once" +[button:id="TRIM_WHEEL_DOWN"] +on_push="commandref:sim/autopilot/vertical_speed_down:once" + +[light:id="ALT_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/altitude_hold_status:2" +trigger_unlit="dataref:sim/cockpit2/autopilot/altitude_hold_status:1" + +[light:id="AP_L"] +trigger_lit="dataref:sim/cockpit/autopilot/autopilot_mode:2" +trigger_unlit="dataref:sim/cockpit/autopilot/autopilot_mode:0" + +[light:id="APR_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/glideslope_status:1" +trigger_unlit="dataref:sim/cockpit2/autopilot/glideslope_status:0" + +[light:id="HDG_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/heading_mode:1" +trigger_unlit="dataref:sim/cockpit2/autopilot/heading_mode:0" + +[light:id="NAV_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/nav_status:1" +trigger_unlit="dataref:sim/cockpit2/autopilot/nav_status:0" + +[light:id="VS_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/vvi_status:2" +trigger_unlit="dataref:sim/cockpit2/autopilot/vvi_status:0" + +[light:id="REV_L"] +trigger_lit="dataref:sim/cockpit2/autopilot/backcourse_on:1" +trigger_unlit="dataref:sim/cockpit2/autopilot/backcourse_on:0" + +[multi_display:id="MULTI_DISPLAY_UP"] +line="on_select:SW_HDG,dataref:sim/cockpit/autopilot/heading_mag" +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[multi_display:id="MULTI_DISPLAY_DOWN"] +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[button:id="KNOB_PLUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_up:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_up:once" + +[button:id="KNOB_MINUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_down:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_down:once" From 6ef09ccd50ffb1767096000b507768efab0423bf Mon Sep 17 00:00:00 2001 From: norberttak Date: Fri, 24 Jun 2022 17:59:11 +0200 Subject: [PATCH 5/5] Config file for PWDT L200D Morava Signed-off-by: norberttak --- config/L200 Morava/xpanel.ini | 91 +++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 config/L200 Morava/xpanel.ini diff --git a/config/L200 Morava/xpanel.ini b/config/L200 Morava/xpanel.ini new file mode 100644 index 0000000..2ad14a9 --- /dev/null +++ b/config/L200 Morava/xpanel.ini @@ -0,0 +1,91 @@ +; Aircraft specific handler for PWDT L200D Morava XPlane aircraft +; +; Copyright (C) 2022 Norbert Takacs +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + +;script_file="L200D-cockpit.lua" +aircraft_acf="L200D.acf" + +[device:id="aurduino_homecockpit"] +vid="2341" +pid="8036" + +;STROBE light +[button:id="STROBE"] +on_push="dataref:sim/cockpit/electrical/strobe_lights_on:1" +on_release="dataref:sim/cockpit/electrical/strobe_lights_on:0" + +;BEACON & NAV lights +[button:id="BEACON"] +on_push="dataref:sim/cockpit/electrical/beacon_lights_on:1" +on_push="dataref:sim/cockpit/electrical/nav_lights_on:1" +on_release="dataref:sim/cockpit/electrical/beacon_lights_on:0" +on_release="dataref:sim/cockpit/electrical/nav_lights_on:0" + +;TAXI light +[button:id="TAXI"] +on_push="dataref:sim/cockpit/electrical/taxi_light_on:1" +on_release="dataref:sim/cockpit/electrical/taxi_light_on:0" + +;LAND light +[button:id="LAND"] +on_push="dataref:sim/cockpit/electrical/landing_lights_on:1" +on_release="dataref:sim/cockpit/electrical/landing_lights_on:0" + +;PITOT light +[button:id="PITOT"] +on_push="dataref:PWDT/L200D/Deicing/Pitot_heat_sw:2" +on_release="dataref:PWDT/L200D/Deicing/Pitot_heat_sw:0" + +;Transponder +[button:id="XPDR"] +on_push="dataref:PWDT/L200D/XPDR_mode:3" +on_release="dataref:PWDT/L200D/XPDR_mode:1" + +;Left Start Switch +[button:id="START_L"] +on_push="commandref:sim/ignition/engage_starter_1:begin" +on_release="commandref:sim/ignition/engage_starter_1:end" + +;Right Start Switch +[button:id="START_R"] +on_push="commandref:sim/ignition/engage_starter_1:begin" +on_release="commandref:sim/ignition/engage_starter_1:end" + +; -------------------- Saitek Multi Panel ---------------- +[device:id="saitek_multi"] +vid="6a3" +pid="d06" + +;Flaps up & down handler +[button:id="FLAPS_UP"] +on_push="commandref:sim/flight_controls/flaps_up:once" +[button:id="FLAPS_DOWN"] +on_push="commandref:sim/flight_controls/flaps_down:once" + +[multi_display:id="MULTI_DISPLAY_UP"] +line="on_select:SW_HDG,dataref:sim/cockpit/autopilot/heading_mag" +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[multi_display:id="MULTI_DISPLAY_DOWN"] +line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm" + +[button:id="KNOB_PLUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_up:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_up:once" + +[button:id="KNOB_MINUS"] +on_push="on_select:SW_HDG,commandref:sim/autopilot/heading_down:once" +on_push="on_select:SW_CRS,commandref:sim/radios/obs1_down:once"