From f98489cdfdf61ee37c67449e0a16b44a58aa5bd5 Mon Sep 17 00:00:00 2001 From: Croc <38904654+crocket63@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:51:41 +0200 Subject: [PATCH] fix(elec): Deactivate seats electrical when no elec (#9089) * deactivate seats if no AC * removed else statements * Using correct BUS --- .../model/behaviour/interactive-parts.xml | 40 +++++++++++++++---- 1 file changed, 32 insertions(+), 8 deletions(-) mode change 100644 => 100755 fbw-a380x/src/base/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/behaviour/interactive-parts.xml diff --git a/fbw-a380x/src/base/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/behaviour/interactive-parts.xml b/fbw-a380x/src/base/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/behaviour/interactive-parts.xml old mode 100644 new mode 100755 index cf8990a25ee..a7f7da35713 --- a/fbw-a380x/src/base/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/behaviour/interactive-parts.xml +++ b/fbw-a380x/src/base/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/behaviour/interactive-parts.xml @@ -265,8 +265,14 @@ L XMLVAR_SEAT_FWDAFT 800 - (L:SEAT_CPT_MOVE_FWD_AFT) 0.4 + 100 min (>L:SEAT_CPT_MOVE_FWD_AFT) - (L:SEAT_CPT_MOVE_FWD_AFT) 0.4 - 0 max (>L:SEAT_CPT_MOVE_FWD_AFT) + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_CPT_MOVE_FWD_AFT) 0.4 + 100 min (>L:SEAT_CPT_MOVE_FWD_AFT) + } + + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_CPT_MOVE_FWD_AFT) 0.4 - 0 max (>L:SEAT_CPT_MOVE_FWD_AFT) + } + 800 0.2 @@ -288,8 +294,14 @@ L XMLVAR_SEAT_UPDOWN 800 - (L:SEAT_CPT_MOVE_UP_DOWN) 0.4 + 100 min (>L:SEAT_CPT_MOVE_UP_DOWN) - (L:SEAT_CPT_MOVE_UP_DOWN) 0.4 - 0 max (>L:SEAT_CPT_MOVE_UP_DOWN) + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_CPT_MOVE_UP_DOWN) 0.4 + 100 min (>L:SEAT_CPT_MOVE_UP_DOWN) + } + + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_CPT_MOVE_UP_DOWN) 0.4 - 0 max (>L:SEAT_CPT_MOVE_UP_DOWN) + } + 800 0.2 @@ -368,8 +380,14 @@ L XMLVAR_SEAT_FO_FWDAFT 400 - (L:SEAT_FO_MOVE_FWD_AFT) 0.2 + 100 min (>L:SEAT_FO_MOVE_FWD_AFT) - (L:SEAT_FO_MOVE_FWD_AFT) 0.2 - 0 max (>L:SEAT_FO_MOVE_FWD_AFT) + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_FO_MOVE_FWD_AFT) 0.2 + 100 min (>L:SEAT_FO_MOVE_FWD_AFT) + } + + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_FO_MOVE_FWD_AFT) 0.2 - 0 max (>L:SEAT_FO_MOVE_FWD_AFT) + } + 800 2 @@ -392,8 +410,14 @@ L XMLVAR_SEAT_FO_UPDOWN 400 - (L:SEAT_FO_MOVE_UP_DOWN) 0.2 + 100 min (>L:SEAT_FO_MOVE_UP_DOWN) - (L:SEAT_FO_MOVE_UP_DOWN) 0.2 - 0 max (>L:SEAT_FO_MOVE_UP_DOWN) + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_FO_MOVE_UP_DOWN) 0.2 + 100 min (>L:SEAT_FO_MOVE_UP_DOWN) + } + + (L:A32NX_ELEC_AC_2_BUS_IS_POWERED, Bool) if{ + (L:SEAT_FO_MOVE_UP_DOWN) 0.2 - 0 max (>L:SEAT_FO_MOVE_UP_DOWN) + } + 800 2