diff --git a/A320-main.xml b/A320-main.xml index b9fe2c2f..98189060 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -1115,6 +1115,7 @@ + 0 0 diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index cd18a7e3..d5390368 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -210,19 +210,9 @@ rotate instrumentation/ddrmi/flag-hdg -180 - -180 - -
- -0.530373 - -0.142459 - 0.131096 -
+ 180 - 1 - 0 - 0.2 + ddrmi_hdg_flag.axis @@ -1196,8 +1186,10 @@ dec_low_on dec_med_on dec_max_on - gpws_gs_sw_gpws_on - gpws_gs_sw_gs_on + gpws_gs_sw_gpws_on.cpt + gpws_gs_sw_gs_on.cpt + gpws_gs_sw_gpws_on.fo + gpws_gs_sw_gs_on.fo prio_capt.arrow prio_capt.arrow.001 prio_capt.capt @@ -2598,17 +2590,10 @@ foot_warmer_cpt_sw foot_warmer_cpt_sw.mark controls/cabin/footwarmer-cpt-pos - 30 - -60 -
- -0.559529 - -0.681048 - 0.232538 -
+ -30 + 60 - 0 - 1 - 0 + foot_warmer_cpt_sw.axis false @@ -2638,18 +2623,11 @@ foot_warmer_fo_sw foot_warmer_fo_sw.mark controls/cabin/footwarmer-fo-pos - 30 - -60 -
- -0.559529 - 0.679987 - 0.232538 -
+ -30 + 60 - 0 - 1 - 0 - + foot_warmer_fo_sw.001 + false @@ -2675,7 +2653,8 @@ select - gpws_gs_sw_gpws_on + gpws_gs_sw_gpws_on.cpt + gpws_gs_sw_gpws_on.fo controls/switches/annun-test @@ -2686,7 +2665,8 @@ select - gpws_gs_sw_gs_on + gpws_gs_sw_gs_on.cpt + gpws_gs_sw_gs_on.fo controls/switches/annun-test @@ -2697,9 +2677,9 @@ pick - gpws_gs_sw - gpws_gs_sw_gs_on - gpws_gs_sw_gpws_on + gpws_gs_sw.cpt + gpws_gs_sw_gs_on.cpt + gpws_gs_sw_gpws_on.cpt @@ -2764,11 +2744,80 @@ + + pick + gpws_gs_sw.fo + gpws_gs_sw_gs_on.fo + gpws_gs_sw_gpws_on.fo + + + + + + + systems/electrical/bus/ac-1 + 110 + + + + property-assign + /instrumentation/mk-viii/inputs/discretes/self-test + 1 + + + + + + systems/electrical/bus/ac-1 + 110 + + + + property-assign + /instrumentation/mk-viii/inputs/discretes/glideslope-cancel + 1 + + + nasal + + + + property-assign + /controls/cockpit/gpws_r-translate + 0.00075 + + + + property-assign + /instrumentation/mk-viii/inputs/discretes/self-test + 0 + + + property-assign + /instrumentation/mk-viii/inputs/discretes/glideslope-cancel + 0 + + + property-assign + /controls/cockpit/gpws_r-translate + 0.0 + + + + + + set-tooltip + gpws-lbl + + + + + translate - gpws_gs_sw - gpws_gs_sw_gs_on - gpws_gs_sw_gpws_on + gpws_gs_sw.cpt + gpws_gs_sw_gs_on.cpt + gpws_gs_sw_gpws_on.cpt /controls/cockpit/gpws_l-translate -0.366265 @@ -2780,6 +2829,22 @@ + + translate + gpws_gs_sw.fo + gpws_gs_sw_gs_on.fo + gpws_gs_sw_gpws_on.fo + /controls/cockpit/gpws_r-translate + + -0.366265 + 0.39799 + 0.481225 + -0.375885 + 0.39799 + 0.478435 + + + select atc_msg_on @@ -11685,15 +11750,10 @@ knob light_console_cpt_sw /controls/lighting/console-floor-light-sw-pos - -60 - 30 -
- -0.560268 - -0.713513 - 0.232654 -
+ -30 + 60 - 1 + light_console_cpt_sw.axis @@ -11890,15 +11950,10 @@ knob light_console_fo_sw /controls/lighting/console-floor-light-sw-right-pos - -60 - 30 -
- -0.560268 - -0.713513 - 0.232654 -
+ -30 + 60 - 1 + light_console_fo_sw.axis @@ -12176,5 +12231,38 @@
+ + knob + audio_swtg + eng_mode.mark.030 + controls/navigation/switching/audio-pos + -70 + 35 + + eng_mode.axis.025 + + + + property-cycle + controls/navigation/switching/audio + -1 + 0 + 1 + false + + + nasal + + + + + + set-tooltip + audio-swtg-lbl + + + + + diff --git a/Nasal/Panels/SwitchingPanel.nas b/Nasal/Panels/SwitchingPanel.nas index 57f38ef0..bf8bbc36 100644 --- a/Nasal/Panels/SwitchingPanel.nas +++ b/Nasal/Panels/SwitchingPanel.nas @@ -5,8 +5,9 @@ var SwitchingPanel = { Switches: { - attHdg: props.globals.getNode("/controls/navigation/switching/att-hdg"), + audio: props.globals.getNode("/controls/navigation/switching/audio"), airData: props.globals.getNode("/controls/navigation/switching/air-data"), + attHdg: props.globals.getNode("/controls/navigation/switching/att-hdg"), eisDmc: props.globals.getNode("/controls/navigation/switching/eis-dmc"), }, diff --git a/Systems/a320-cockpit.xml b/Systems/a320-cockpit.xml index 5f425e44..a578f88c 100644 --- a/Systems/a320-cockpit.xml +++ b/Systems/a320-cockpit.xml @@ -154,16 +154,27 @@ - - - /controls/switches/loudspeaker-l ge /controls/switches/loudspeaker-r - /systems/electrical/bus/dc-ess ge 25 + + + /systems/electrical/bus/dc-ess ge 25 + /controls/switches/loudspeaker-l ge /controls/switches/loudspeaker-r + + + /systems/electrical/bus/dc-1 ge 25 + /controls/navigation/switching/audio eq -1 + - /controls/switches/loudspeaker-r gt /controls/switches/loudspeaker-l - /systems/electrical/bus/dc-ess ge 25 + + /systems/electrical/bus/dc-ess ge 25 + /controls/switches/loudspeaker-r gt /controls/switches/loudspeaker-r + + + /systems/electrical/bus/dc-1 ge 25 + /controls/navigation/switching/audio eq 1 + /sim/sound/atc/volume /sim/sound/chatter/volume