From 5a9d1418537a5faf2945f81d126af937f03c63e4 Mon Sep 17 00:00:00 2001 From: Frank Kopp Date: Fri, 6 Jan 2023 12:53:47 +0100 Subject: [PATCH] fix: Fixed sound, cones and chocks which depend on LIGHT BEACON (ON)) var #7689 --- .../AirPlanes/FlyByWire_A320_NEO/model/A320_NEO.xml | 2 +- .../SimObjects/AirPlanes/FlyByWire_A320_NEO/sound/sound.xml | 6 +++--- src/behavior/src/A32NX_Exterior.xml | 2 +- src/behavior/src/A32NX_Interior_Handling.xml | 2 +- src/systems/a320_systems/src/hydraulic/mod.rs | 2 +- src/systems/a320_systems_wasm/src/lib.rs | 1 + src/systems/a380_systems/src/hydraulic/mod.rs | 2 +- src/systems/a380_systems_wasm/src/lib.rs | 1 + 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/model/A320_NEO.xml b/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/model/A320_NEO.xml index 37c7ca61976..36c28b6841d 100644 --- a/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/model/A320_NEO.xml +++ b/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/model/A320_NEO.xml @@ -530,7 +530,7 @@ 10 (A:SURFACE RELATIVE GROUND SPEED, feet per second) 0.1 > ! (>L:A32NX_IS_STATIONARY, bool) - (A:SIM ON GROUND, bool) (L:A32NX_ENGINE_N1:1, Number) 3.5 < and (L:A32NX_ENGINE_N1:2, Number) 3.5 < and (L:A32NX_HYD_NW_STRG_DISC_ECAM_MEMO, bool) 0 == and (A:LIGHT BEACON ON, bool) 0 == and (>L:A32NX_GND_EQP_IS_VISIBLE, bool) + (A:SIM ON GROUND, bool) (L:A32NX_ENGINE_N1:1, Number) 3.5 < and (L:A32NX_ENGINE_N1:2, Number) 3.5 < and (L:A32NX_HYD_NW_STRG_DISC_ECAM_MEMO, bool) 0 == and (A:LIGHT BEACON, bool) 0 == and (>L:A32NX_GND_EQP_IS_VISIBLE, bool) diff --git a/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/sound/sound.xml b/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/sound/sound.xml index 55f6eaca453..0d6c2ea2930 100644 --- a/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/sound/sound.xml +++ b/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/sound/sound.xml @@ -2264,14 +2264,14 @@ - + - + @@ -2280,7 +2280,7 @@ - + diff --git a/src/behavior/src/A32NX_Exterior.xml b/src/behavior/src/A32NX_Exterior.xml index 2529ef9eb15..99639dc4dc7 100644 --- a/src/behavior/src/A32NX_Exterior.xml +++ b/src/behavior/src/A32NX_Exterior.xml @@ -211,7 +211,7 @@ - (A:SIM ON GROUND, bool) (L:A32NX_ENGINE_N1:1, Number) 3.5 < and (L:A32NX_ENGINE_N1:2, Number) 3.5 < and (L:A32NX_HYD_NW_STRG_DISC_ECAM_MEMO, bool) 0 == and (A:LIGHT BEACON ON, bool) 0 == and + (A:SIM ON GROUND, bool) (L:A32NX_ENGINE_N1:1, Number) 3.5 < and (L:A32NX_ENGINE_N1:2, Number) 3.5 < and (L:A32NX_HYD_NW_STRG_DISC_ECAM_MEMO, bool) 0 == and (A:LIGHT BEACON, bool) 0 == and diff --git a/src/behavior/src/A32NX_Interior_Handling.xml b/src/behavior/src/A32NX_Interior_Handling.xml index 004d54bf8ea..72d80971906 100644 --- a/src/behavior/src/A32NX_Interior_Handling.xml +++ b/src/behavior/src/A32NX_Interior_Handling.xml @@ -104,7 +104,7 @@ 30 O Position - 16383 10 / + 16383 10 / TT:COCKPIT.TOOLTIPS.SPEEDBRAKE_LEVER diff --git a/src/systems/a320_systems/src/hydraulic/mod.rs b/src/systems/a320_systems/src/hydraulic/mod.rs index 04aff164cbc..83573d85cc3 100644 --- a/src/systems/a320_systems/src/hydraulic/mod.rs +++ b/src/systems/a320_systems/src/hydraulic/mod.rs @@ -3868,7 +3868,7 @@ impl A320BrakingForce { .get_identifier("RIGHT_FLAPS_POSITION_PERCENT".to_owned()), enabled_chocks_id: context.get_identifier("MODEL_WHEELCHOCKS_ENABLED".to_owned()), - light_beacon_on_id: context.get_identifier("LIGHT BEACON ON".to_owned()), + light_beacon_on_id: context.get_identifier("LIGHT BEACON".to_owned()), left_braking_force: 0., right_braking_force: 0., diff --git a/src/systems/a320_systems_wasm/src/lib.rs b/src/systems/a320_systems_wasm/src/lib.rs index 3c474d74507..24cad68ac56 100644 --- a/src/systems/a320_systems_wasm/src/lib.rs +++ b/src/systems/a320_systems_wasm/src/lib.rs @@ -210,6 +210,7 @@ async fn systems(mut gauge: msfs::Gauge) -> Result<(), Box> { .provides_aircraft_variable("INDICATED ALTITUDE", "Feet", 0)? .provides_aircraft_variable("INTERACTIVE POINT OPEN:0", "Percent", 0)? .provides_aircraft_variable("INTERACTIVE POINT OPEN:3", "Percent", 0)? + .provides_aircraft_variable("LIGHT BEACON", "Bool", 0)? .provides_aircraft_variable("LIGHT BEACON ON", "Bool", 0)? .provides_aircraft_variable("PLANE ALT ABOVE GROUND", "Feet", 0)? .provides_aircraft_variable("PLANE PITCH DEGREES", "Degrees", 0)? diff --git a/src/systems/a380_systems/src/hydraulic/mod.rs b/src/systems/a380_systems/src/hydraulic/mod.rs index 8e4318c97e8..5e61bb123f9 100644 --- a/src/systems/a380_systems/src/hydraulic/mod.rs +++ b/src/systems/a380_systems/src/hydraulic/mod.rs @@ -3906,7 +3906,7 @@ impl A380BrakingForce { .get_identifier("RIGHT_FLAPS_POSITION_PERCENT".to_owned()), enabled_chocks_id: context.get_identifier("MODEL_WHEELCHOCKS_ENABLED".to_owned()), - light_beacon_on_id: context.get_identifier("LIGHT BEACON ON".to_owned()), + light_beacon_on_id: context.get_identifier("LIGHT BEACON".to_owned()), left_braking_force: 0., right_braking_force: 0., diff --git a/src/systems/a380_systems_wasm/src/lib.rs b/src/systems/a380_systems_wasm/src/lib.rs index d3c735f2b87..5e55253ac59 100644 --- a/src/systems/a380_systems_wasm/src/lib.rs +++ b/src/systems/a380_systems_wasm/src/lib.rs @@ -191,6 +191,7 @@ async fn systems(mut gauge: msfs::Gauge) -> Result<(), Box> { .provides_aircraft_variable("INDICATED ALTITUDE", "Feet", 0)? .provides_aircraft_variable("INTERACTIVE POINT OPEN:0", "Percent", 0)? .provides_aircraft_variable("INTERACTIVE POINT OPEN:3", "Percent", 0)? + .provides_aircraft_variable("LIGHT BEACON", "Bool", 0)? .provides_aircraft_variable("LIGHT BEACON ON", "Bool", 0)? .provides_aircraft_variable("PLANE ALT ABOVE GROUND", "Feet", 0)? .provides_aircraft_variable("PLANE PITCH DEGREES", "Degrees", 0)?