diff --git a/Models/Instruments/OHpanel/OHpanel.xml b/Models/Instruments/OHpanel/OHpanel.xml index bdf3768e..bb685ccf 100644 --- a/Models/Instruments/OHpanel/OHpanel.xml +++ b/Models/Instruments/OHpanel/OHpanel.xml @@ -5880,7 +5880,7 @@ - + pick CVRTest @@ -5893,5 +5893,31 @@ + + + pick + GroundCall + + + false + + nasal + + + + + + + pick + FwdCabinCall + + + false + + nasal + + + + \ No newline at end of file diff --git a/Nasal/buttons.nas b/Nasal/buttons.nas index 4ef257eb..eff17b67 100644 --- a/Nasal/buttons.nas +++ b/Nasal/buttons.nas @@ -17,6 +17,8 @@ var variousReset = func { setprop("/instrumentation/mk-viii/inputs/discretes/glideslope-cancel", 0); setprop("/instrumentation/mk-viii/inputs/discretes/momentary-flap-override", 0); setprop("/instrumentation/mk-viii/inputs/discretes/momentary-flap3-override", 0); + setprop("/controls/switches/cabinCall", 0); + setprop("/controls/switches/mechCall", 0); # cockpit voice recorder stuff setprop("/controls/CVR/power", 0); setprop("/controls/CVR/test", 0); @@ -26,6 +28,21 @@ var variousReset = func { setprop("/controls/switches/cabinfan", 1); } + +var CabinCall = func { + setprop("/controls/switches/cabinCall", 1); + settimer(func() { + setprop("/controls/switches/cabinCall", 0); + }, 15); +} + +var MechCall = func { + setprop("/controls/switches/mechCall", 1); + settimer(func() { + setprop("/controls/switches/mechCall", 0); + }, 15); +} + var CVR_test = func { var parkBrake = getprop("/controls/gear/brake-parking"); if (parkBrake) { diff --git a/Sounds/A320-common-sound.xml b/Sounds/A320-common-sound.xml index def01ffe..341ca47f 100644 --- a/Sounds/A320-common-sound.xml +++ b/Sounds/A320-common-sound.xml @@ -44,6 +44,40 @@ + + PurserSnacks + once + purserSnacks.wav + + + /controls/switches/cabinCall + 1 + + + + 8 + + 20.0 + 100.0 + + + + MechCall + once + mechCall.wav + + + /controls/switches/mechCall + 1 + + + + 8 + + 20.0 + 100.0 + + V1 once diff --git a/Sounds/mechCall.wav b/Sounds/mechCall.wav new file mode 100644 index 00000000..efa58a9f Binary files /dev/null and b/Sounds/mechCall.wav differ diff --git a/Sounds/purserSnacks.wav b/Sounds/purserSnacks.wav new file mode 100644 index 00000000..81781837 Binary files /dev/null and b/Sounds/purserSnacks.wav differ