Merge branch 'dev' into 3D
This commit is contained in:
commit
8b5355df23
12 changed files with 678 additions and 578 deletions
|
@ -484,14 +484,6 @@
|
|||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>engine_fault_1</object-name>
|
||||
<condition>
|
||||
<property>systems/unused/unused-ped</property>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>engine_fire_1</object-name>
|
||||
|
@ -513,14 +505,6 @@
|
|||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>engine_fault_2</object-name>
|
||||
<condition>
|
||||
<property>systems/unused/unused-ped</property>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>engine_fire_2</object-name>
|
||||
|
@ -1006,12 +990,13 @@
|
|||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- No button lights without power! -->
|
||||
<!-- Button lights 115 mA, 5 VAC on BRT setting -->
|
||||
<!-- Sourced from 4 transformers -->
|
||||
|
||||
|
||||
<!-- 31LP AC ESS SHED 801XP 5VAC transformer -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>abs_low_on</object-name>
|
||||
<object-name>abs_med_on</object-name>
|
||||
<object-name>abs_max_on</object-name>
|
||||
<object-name>alt-text</object-name>
|
||||
<object-name>alt-text-test</object-name>
|
||||
<object-name>ap1_led</object-name>
|
||||
|
@ -1019,9 +1004,9 @@
|
|||
<object-name>appr_led</object-name>
|
||||
<object-name>arpt_led</object-name>
|
||||
<object-name>arpt_led.001</object-name>
|
||||
<object-name>a-thr_led</object-name>
|
||||
<object-name>atc-code</object-name>
|
||||
<object-name>atc-test</object-name>
|
||||
<object-name>a-thr_led</object-name>
|
||||
<object-name>audio_att_led</object-name>
|
||||
<object-name>audio_att_sgn</object-name>
|
||||
<object-name>audio_call_hf2_led</object-name>
|
||||
|
@ -1033,19 +1018,169 @@
|
|||
<object-name>audio_hf2_led</object-name>
|
||||
<object-name>audio_mech_led</object-name>
|
||||
<object-name>audio_mech_sgn</object-name>
|
||||
<object-name>audio_pa_led</object-name>
|
||||
<object-name>audio_voice_led</object-name>
|
||||
<object-name>audio_vhf1_led</object-name>
|
||||
<object-name>audio_vhf2_led</object-name>
|
||||
<object-name>audio_vhf3_led</object-name>
|
||||
<object-name>autoland_light_on</object-name>
|
||||
<object-name>brk_fan_on</object-name>
|
||||
<object-name>brk_hot_on</object-name>
|
||||
<!-- <object-name>clock_glare</object-name>-->
|
||||
<object-name>cstr_led</object-name>
|
||||
<object-name>cstr_led.001</object-name>
|
||||
<object-name>exped_led</object-name>
|
||||
<object-name>fcu_screen</object-name>
|
||||
<object-name>fd1_led</object-name>
|
||||
<object-name>fd2_led</object-name>
|
||||
<object-name>fpa-text</object-name>
|
||||
<object-name>hdg-text</object-name>
|
||||
<object-name>hdg-text-test</object-name>
|
||||
<object-name>ils_led</object-name>
|
||||
<object-name>ils2_led</object-name>
|
||||
<object-name>loc_led</object-name>
|
||||
<object-name>mach-text</object-name>
|
||||
<object-name>ndb_led</object-name>
|
||||
<object-name>ndb_led.001</object-name>
|
||||
<object-name>qnh-hpa</object-name>
|
||||
<object-name>qnh-inhg</object-name>
|
||||
<object-name>qnh-std</object-name>
|
||||
<object-name>qnh-test</object-name>
|
||||
<object-name>radio_adf_led</object-name>
|
||||
<object-name>radio_am_led</object-name>
|
||||
<object-name>radio_bfo_led</object-name>
|
||||
<object-name>radio_hf1_led</object-name>
|
||||
<object-name>radio_hf2_led</object-name>
|
||||
<object-name>radio_ls_led</object-name>
|
||||
<object-name>radio_nav_led</object-name>
|
||||
<object-name>radio_opt_led</object-name>
|
||||
<object-name>radio_vhf1_led</object-name>
|
||||
<object-name>radio_vhf2_led</object-name>
|
||||
<object-name>radio_vhf3_led</object-name>
|
||||
<object-name>radio_vor_led</object-name>
|
||||
<object-name>spd-text</object-name>
|
||||
<object-name>spd-text-test</object-name>
|
||||
<object-name>vord_led</object-name>
|
||||
<object-name>vord_led.001</object-name>
|
||||
<object-name>vs-text</object-name>
|
||||
<object-name>vs-text-last-2-digits</object-name>
|
||||
<object-name>vs-text-test</object-name>
|
||||
<object-name>wpt_led</object-name>
|
||||
<object-name>wpt_led.001</object-name>
|
||||
<object-name>prio_capt.arrow</object-name>
|
||||
<object-name>prio_capt.capt</object-name>
|
||||
<object-name>prio_fo.arrow</object-name>
|
||||
<object-name>prio_fo_fo</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- Special for master warning -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>autoland_light_on</object-name>
|
||||
<object-name>master_caution_on</object-name>
|
||||
<object-name>master_warning_on</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- 35LP AC ESS SHED 801XP 5VAC transformer
|
||||
BACKUP 901XP STAT INV
|
||||
-->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>engine_fire_1</object-name>
|
||||
<object-name>engine_fire_2</object-name>
|
||||
<object-name>gear_lever_down_arrow</object-name>
|
||||
<object-name>lgear_down</object-name>
|
||||
<object-name>lgear_unlk</object-name>
|
||||
<object-name>ngear_down</object-name>
|
||||
<object-name>ngear_unlk</object-name>
|
||||
<object-name>rgear_down</object-name>
|
||||
<object-name>rgear_unlk</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- 36LP AC 2 202XP 5VAC transformer -->
|
||||
<!-- ATC MSG (dual power with 37LP?) -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>brk_fan_on</object-name>
|
||||
<object-name>brk_hot_on</object-name>
|
||||
<object-name>CockpitDoorFault</object-name>
|
||||
<object-name>CockpitDoorOpen</object-name>
|
||||
<object-name>engine_fault_1</object-name>
|
||||
<object-name>engine_fault_2</object-name>
|
||||
<object-name>prio_fo.arrow</object-name>
|
||||
<object-name>prio_fo_fo</object-name>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- 37LP AC 1 103XP 5VAC transformer -->
|
||||
<!-- ATC MSG, GPWS annunciator -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>abs_low_on</object-name>
|
||||
<object-name>abs_med_on</object-name>
|
||||
<object-name>abs_max_on</object-name>
|
||||
<object-name>dec_low_on</object-name>
|
||||
<object-name>dec_med_on</object-name>
|
||||
<object-name>dec_max_on</object-name>
|
||||
<object-name>prio_capt.arrow</object-name>
|
||||
<object-name>prio_capt.arrow.001</object-name>
|
||||
<object-name>prio_capt.capt</object-name>
|
||||
<object-name>prio_capt.capt.001</object-name>
|
||||
<object-name>radio_sel_led</object-name>
|
||||
<object-name>terr_on_nd_on_l</object-name>
|
||||
<object-name>terr_on_nd_on_r</object-name>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- Direct DC power from DC2 206PP to ECP LEDs and rudder trim indicator -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>ecam_apu_led</object-name>
|
||||
<object-name>ecam_bleed_led</object-name>
|
||||
<object-name>ecam_cond_led</object-name>
|
||||
|
@ -1062,70 +1197,6 @@
|
|||
<object-name>ecam_press_led</object-name>
|
||||
<object-name>ecam_sts_led</object-name>
|
||||
<object-name>ecam_wheel_led</object-name>
|
||||
<object-name>exped_led</object-name>
|
||||
<object-name>fcu_screen</object-name>
|
||||
<object-name>fd1_led</object-name>
|
||||
<object-name>fd2_led</object-name>
|
||||
<object-name>fpa-text</object-name>
|
||||
<object-name>hdg-text</object-name>
|
||||
<object-name>hdg-text-test</object-name>
|
||||
<object-name>ils_led</object-name>
|
||||
<object-name>ils2_led</object-name>
|
||||
<object-name>lgear_down</object-name>
|
||||
<object-name>lgear_unlk</object-name>
|
||||
<object-name>loc_led</object-name>
|
||||
<object-name>mach-text</object-name>
|
||||
<object-name>master_caution_on</object-name>
|
||||
<object-name>master_warning_on</object-name>
|
||||
<object-name>ndb_led</object-name>
|
||||
<object-name>ndb_led.001</object-name>
|
||||
<object-name>ngear_down</object-name>
|
||||
<object-name>ngear_unlk</object-name>
|
||||
<object-name>qnh-hpa</object-name>
|
||||
<object-name>qnh-inhg</object-name>
|
||||
<object-name>qnh-std</object-name>
|
||||
<object-name>qnh-test</object-name>
|
||||
<object-name>radio_adf_led</object-name>
|
||||
<object-name>radio_am_led</object-name>
|
||||
<object-name>radio_bfo_led</object-name>
|
||||
<object-name>radio_hf1_led</object-name>
|
||||
<object-name>radio_hf2_led</object-name>
|
||||
<object-name>radio_ls_led</object-name>
|
||||
<object-name>radio_nav_led</object-name>
|
||||
<object-name>radio_opt_led</object-name>
|
||||
<object-name>radio_sel_led</object-name>
|
||||
<object-name>radio_vhf1_led</object-name>
|
||||
<object-name>radio_vhf2_led</object-name>
|
||||
<object-name>radio_vhf3_led</object-name>
|
||||
<object-name>radio_vor_led</object-name>
|
||||
<object-name>rgear_down</object-name>
|
||||
<object-name>rgear_unlk</object-name>
|
||||
<object-name>spd-text</object-name>
|
||||
<object-name>spd-text-test</object-name>
|
||||
<object-name>terr_on_nd_label</object-name>
|
||||
<object-name>terr_on_nd_on_l</object-name>
|
||||
<object-name>terr_on_nd_on_r</object-name>
|
||||
<object-name>vord_led</object-name>
|
||||
<object-name>vord_led.001</object-name>
|
||||
<object-name>vs-text</object-name>
|
||||
<object-name>vs-text-last-2-digits</object-name>
|
||||
<object-name>vs-text-test</object-name>
|
||||
<object-name>wpt_led</object-name>
|
||||
<object-name>wpt_led.001</object-name>
|
||||
<object-name>prio_capt.arrow</object-name>
|
||||
<object-name>prio_capt.capt</object-name>
|
||||
<object-name>prio_fo.arrow</object-name>
|
||||
<object-name>prio_fo_fo</object-name>
|
||||
<condition>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc-ess</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>rudder-trim-letter</object-name>
|
||||
<object-name>rudder-trim</object-name>
|
||||
<condition>
|
||||
|
@ -1153,7 +1224,6 @@
|
|||
<!-- Remove from this animation once you simulate -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>atc-test</object-name>
|
||||
<object-name>audio_att_sgn</object-name>
|
||||
<object-name>audio_call_hf2_led</object-name>
|
||||
<object-name>audio_call_hf1_led</object-name>
|
||||
|
@ -6070,17 +6140,6 @@
|
|||
<type>select</type>
|
||||
<object-name>gear_lever_down_arrow</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than>
|
||||
<property>systems/electrical/bus/ac-ess</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
<greater-than>
|
||||
<property>systems/electrical/bus/ac-2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
|
@ -6091,7 +6150,6 @@
|
|||
<value>1</value>
|
||||
</equals>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
@ -6099,17 +6157,6 @@
|
|||
<type>material</type>
|
||||
<object-name>gear_lever_down_arrow</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than>
|
||||
<property>systems/electrical/bus/ac-ess</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
<greater-than>
|
||||
<property>systems/electrical/bus/ac-2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
|
@ -6120,7 +6167,6 @@
|
|||
<value>1</value>
|
||||
</equals>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<emission>
|
||||
<red>1.00</red>
|
||||
|
|
|
@ -2456,9 +2456,9 @@ var canvas_MCDU_base = {
|
|||
}
|
||||
|
||||
me["Simple_L1"].setText(sprintf("%s", engType.getValue()));
|
||||
me["Simple_L2"].setText(sprintf("%s", " " ~ database1.getValue()));
|
||||
me["Simple_L3"].setText(sprintf("%s", " " ~ database2.getValue()));
|
||||
me["Simple_R2"].setText(sprintf("%s", databaseCode.getValue() ~ " "));
|
||||
me["Simple_L2"].setText(" " ~ fmgc.navDataBase.currentDate);
|
||||
me["Simple_L3"].setText(" " ~ fmgc.navDataBase.standbyDate);
|
||||
me["Simple_R2"].setText(fmgc.navDataBase.currentCode);
|
||||
|
||||
if (fmgc.WaypointDatabase.getCount() >= 1) {
|
||||
me["Simple_R4"].show();
|
||||
|
|
|
@ -8,57 +8,70 @@
|
|||
|
||||
<!-- ANIMATIONS -->
|
||||
|
||||
<!-- No button lights without power! -->
|
||||
<!-- Button lights 115 mA, 5 VAC on BRT setting -->
|
||||
<!-- 31LP AC ESS SHED 801XP 5VAC transformer -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>ACPack1Btn1F</object-name>
|
||||
<object-name>ACPack1Btn2O</object-name>
|
||||
<object-name>ACPack2Btn1F</object-name>
|
||||
<object-name>ACPack2Btn2O</object-name>
|
||||
<object-name>ADR1Btn1F</object-name>
|
||||
<object-name>ADR1Btn2O</object-name>
|
||||
<object-name>ADR2Btn1F</object-name>
|
||||
<object-name>ADR2Btn2O</object-name>
|
||||
<object-name>ADR3Btn1F</object-name>
|
||||
<object-name>ADR3Btn2O</object-name>
|
||||
<object-name>BatteryBtn11F</object-name>
|
||||
<object-name>BatteryBtn21F</object-name>
|
||||
<object-name>BusTieBtn2O</object-name>
|
||||
<object-name>DitchBtn2O</object-name>
|
||||
<object-name>EmerExtLtBtn2O</object-name>
|
||||
<object-name>Eng1AntiIceBtn1F</object-name>
|
||||
<object-name>Eng1AntiIceBtn2O</object-name>
|
||||
<object-name>Eng2AntiIceBtn1F</object-name>
|
||||
<object-name>Eng2AntiIceBtn2O</object-name>
|
||||
<object-name>ExtPwrBtn2O</object-name>
|
||||
<object-name>IR1Btn1F</object-name>
|
||||
<object-name>IR1Btn2O</object-name>
|
||||
<object-name>IR2Btn1F</object-name>
|
||||
<object-name>IR2Btn2O</object-name>
|
||||
<object-name>IR3Btn1F</object-name>
|
||||
<object-name>IR3Btn2O</object-name>
|
||||
<object-name>AftCargoIsoBtn1F</object-name>
|
||||
<object-name>AftCargoIsoBtn2O</object-name>
|
||||
<object-name>APUBleedBtn1F</object-name>
|
||||
<object-name>APUBleedBtn2O</object-name>
|
||||
<object-name>BlueElecPump1F</object-name>
|
||||
<object-name>BlueElecPump2O</object-name>
|
||||
<object-name>CargoHotAirBtn1F</object-name>
|
||||
<object-name>CargoHotAirBtn2O</object-name>
|
||||
<object-name>CrewOxyBtn2O</object-name>
|
||||
<object-name>ExtPwrBtn1A</object-name>
|
||||
<object-name>GalleyPwrBtn1F</object-name>
|
||||
<object-name>GalleyPwrBtn2O</object-name>
|
||||
<object-name>Gen1LineBtn1S</object-name>
|
||||
<object-name>Gen1LineBtn2O</object-name>
|
||||
<object-name>FuelXfeedBtn1O</object-name>
|
||||
<object-name>FuelXfeedBtn2O</object-name>
|
||||
<object-name>LFuelTank1Btn1F</object-name>
|
||||
<object-name>LFuelTank1Btn2O</object-name>
|
||||
<object-name>PassOxyInd1S</object-name>
|
||||
<object-name>RamAirBtn2O</object-name>
|
||||
<object-name>RFuelTank1Btn1F</object-name>
|
||||
<object-name>RFuelTank1Btn2O</object-name>
|
||||
<object-name>WingAntiIceBtn1F</object-name>
|
||||
<object-name>WingAntiIceBtn2O</object-name>
|
||||
<object-name>VentBlowBtn1F</object-name>
|
||||
<condition>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess</property>
|
||||
<value>5</value>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- 35LP AC ESS SHED 801XP 5VAC transformer
|
||||
BACKUP 901XP STAT INV
|
||||
-->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>ACPack1Btn1F</object-name>
|
||||
<object-name>ACPack1Btn2O</object-name>
|
||||
<object-name>APUFireAgtBtn1S</object-name>
|
||||
<object-name>APUFireAgtBtn2D</object-name>
|
||||
<object-name>APUGenBtn1F</object-name>
|
||||
<object-name>APUGenBtn2O</object-name>
|
||||
<object-name>APUMasterBtn1F</object-name>
|
||||
<object-name>APUMasterBtn2O</object-name>
|
||||
<object-name>APUStartBtn1A</object-name>
|
||||
<object-name>APUStartBtn2O</object-name>
|
||||
<object-name>APUFireAgtBtn1S</object-name>
|
||||
<object-name>APUFireAgtBtn2D</object-name>
|
||||
<object-name>BatteryBtn11F</object-name>
|
||||
<object-name>BatteryBtn21F</object-name>
|
||||
<object-name>BatteryBtn12O</object-name>
|
||||
<object-name>BatteryBtn22O</object-name>
|
||||
<object-name>BusTieBtn2O</object-name>
|
||||
<object-name>CabinPressModeBtn1F</object-name>
|
||||
<object-name>CabinPressModeBtn2M</object-name>
|
||||
<object-name>DitchBtn2O</object-name>
|
||||
<object-name>ELAC1Btn1F</object-name>
|
||||
<object-name>ELAC1Btn2O</object-name>
|
||||
<object-name>EmerCallBtn1C</object-name>
|
||||
<object-name>EmerCallBtn2O</object-name>
|
||||
<object-name>EmerExtLtBtn2O</object-name>
|
||||
<object-name>Eng1FireAgt1Btn1S</object-name>
|
||||
<object-name>Eng1FireAgt1Btn2D</object-name>
|
||||
<object-name>Eng2FireAgt1Btn1S</object-name>
|
||||
|
@ -67,71 +80,100 @@
|
|||
<object-name>Eng1FireAgt2Btn2D</object-name>
|
||||
<object-name>Eng2FireAgt2Btn1S</object-name>
|
||||
<object-name>Eng2FireAgt2Btn2D</object-name>
|
||||
<object-name>ELAC1Btn1F</object-name>
|
||||
<object-name>ELAC1Btn2O</object-name>
|
||||
<object-name>Eng1ManStartBtn2O</object-name>
|
||||
<object-name>Eng2ManStartBtn2O</object-name>
|
||||
<object-name>EvacCommandBtn1E</object-name>
|
||||
<object-name>EvacCommandBtn2O</object-name>
|
||||
<object-name>FAC1Btn1F</object-name>
|
||||
<object-name>FAC1Btn2O</object-name>
|
||||
<object-name>Gen1Btn1F</object-name>
|
||||
<object-name>Gen1Btn2O</object-name>
|
||||
<object-name>Gen2Btn1F</object-name>
|
||||
<object-name>Gen2Btn2O</object-name>
|
||||
<object-name>IDG1Btn1F</object-name>
|
||||
<object-name>IDG2Btn1F</object-name>
|
||||
<object-name>SEC1Btn1F</object-name>
|
||||
<object-name>SEC1Btn2O</object-name>
|
||||
<object-name>VentBlowBtn1F</object-name>
|
||||
<object-name>VentBlowBtn2O</object-name>
|
||||
<object-name>VentExtractBtn1F</object-name>
|
||||
<object-name>VentExtractBtn2O</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>5</value>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess</property>
|
||||
<value>5</value>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- 36LP AC 2 202XP 5VAC transformer -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>ACESSFeedBtn1F</object-name>
|
||||
<object-name>ACESSFeedBtn2A</object-name>
|
||||
<object-name>AftCargoIsoBtn1F</object-name>
|
||||
<object-name>AftCargoIsoBtn2O</object-name>
|
||||
<object-name>AftCargoSmkBtn1S</object-name>
|
||||
<object-name>AftCargoSmkBtn2D</object-name>
|
||||
<object-name>BlueElecPump1F</object-name>
|
||||
<object-name>BlueElecPump2O</object-name>
|
||||
<object-name>CabinPressModeBtn1F</object-name>
|
||||
<object-name>CabinPressModeBtn2M</object-name>
|
||||
<object-name>CabinFansBtn2O</object-name>
|
||||
<object-name>CargoHotAirBtn1F</object-name>
|
||||
<object-name>CargoHotAirBtn2O</object-name>
|
||||
<object-name>ACPack2Btn1F</object-name>
|
||||
<object-name>ACPack2Btn2O</object-name>
|
||||
<object-name>CFuelTank1Btn1F</object-name>
|
||||
<object-name>CFuelTank1Btn2O</object-name>
|
||||
<object-name>CFuelTank2Btn1F</object-name>
|
||||
<object-name>CFuelTank2Btn2O</object-name>
|
||||
<object-name>CrewOxyBtn2O</object-name>
|
||||
<object-name>ELAC2Btn1F</object-name>
|
||||
<object-name>ELAC2Btn2O</object-name>
|
||||
<object-name>EmerCallBtn1C</object-name>
|
||||
<object-name>EmerCallBtn2O</object-name>
|
||||
<object-name>EmerGenInd1F</object-name>
|
||||
<object-name>Eng1ManStartBtn2O</object-name>
|
||||
<object-name>Eng2ManStartBtn2O</object-name>
|
||||
<object-name>EvacCommandBtn1E</object-name>
|
||||
<object-name>EvacCommandBtn2O</object-name>
|
||||
<object-name>Eng2AntiIceBtn1F</object-name>
|
||||
<object-name>Eng2AntiIceBtn2O</object-name>
|
||||
<object-name>Eng2BleedBtn1F</object-name>
|
||||
<object-name>Eng2BleedBtn2O</object-name>
|
||||
<object-name>FAC2Btn1F</object-name>
|
||||
<object-name>FAC2Btn2O</object-name>
|
||||
<object-name>LFuelTank2Btn1F</object-name>
|
||||
<object-name>LFuelTank2Btn2O</object-name>
|
||||
<object-name>PrbWinHeatBtn2O</object-name>
|
||||
<object-name>PTU1F</object-name>
|
||||
<object-name>PTU2O</object-name>
|
||||
<object-name>RFuelTank2Btn1F</object-name>
|
||||
<object-name>RFuelTank2Btn2O</object-name>
|
||||
<object-name>SEC2Btn1F</object-name>
|
||||
<object-name>SEC2Btn2O</object-name>
|
||||
<object-name>SEC3Btn1F</object-name>
|
||||
<object-name>SEC3Btn2O</object-name>
|
||||
<object-name>YellowElecPump1F</object-name>
|
||||
<object-name>YellowElecPump2O</object-name>
|
||||
<object-name>YellowEngPump1F</object-name>
|
||||
<object-name>YellowEngPump2O</object-name>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- 37LP AC 1 103XP 5VAC transformer -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>ADR1Btn1F</object-name>
|
||||
<object-name>ADR1Btn2O</object-name>
|
||||
<object-name>ADR2Btn1F</object-name>
|
||||
<object-name>ADR2Btn2O</object-name>
|
||||
<object-name>ADR3Btn1F</object-name>
|
||||
<object-name>ADR3Btn2O</object-name>
|
||||
<object-name>AftCargoSmkBtn1S</object-name>
|
||||
<object-name>AftCargoSmkBtn2D</object-name>
|
||||
<object-name>CabinFansBtn2O</object-name>
|
||||
<object-name>CFuelTank2Btn1F</object-name>
|
||||
<object-name>CFuelTank2Btn2O</object-name>
|
||||
<object-name>EmerGenInd1F</object-name>
|
||||
<object-name>Eng1AntiIceBtn1F</object-name>
|
||||
<object-name>Eng1AntiIceBtn2O</object-name>
|
||||
<object-name>Eng1BleedBtn1F</object-name>
|
||||
<object-name>Eng1BleedBtn2O</object-name>
|
||||
<object-name>ExtPwrBtn2O</object-name>
|
||||
<object-name>FuelModeBtn1F</object-name>
|
||||
<object-name>FuelModeBtn2O</object-name>
|
||||
<object-name>FuelXfeedBtn1O</object-name>
|
||||
<object-name>FuelXfeedBtn2O</object-name>
|
||||
<object-name>FwdCargoSmkBtn1S</object-name>
|
||||
<object-name>FwdCargoSmkBtn2D</object-name>
|
||||
<object-name>GalleyPwrBtn1F</object-name>
|
||||
<object-name>GalleyPwrBtn2O</object-name>
|
||||
<object-name>Gen1LineBtn1S</object-name>
|
||||
<object-name>Gen1LineBtn2O</object-name>
|
||||
<object-name>GPWSBtn1F</object-name>
|
||||
<object-name>GPWSBtn2O</object-name>
|
||||
<object-name>GPWSFlpBtn2O</object-name>
|
||||
|
@ -143,60 +185,18 @@
|
|||
<object-name>GreenEngPump2O</object-name>
|
||||
<object-name>HotAirBtn1F</object-name>
|
||||
<object-name>HotAirBtn2O</object-name>
|
||||
<object-name>IDG1Btn1F</object-name>
|
||||
<object-name>IDG2Btn1F</object-name>
|
||||
<object-name>LFuelTank1Btn1F</object-name>
|
||||
<object-name>LFuelTank1Btn2O</object-name>
|
||||
<object-name>LFuelTank2Btn1F</object-name>
|
||||
<object-name>LFuelTank2Btn2O</object-name>
|
||||
<object-name>PassOxyInd1S</object-name>
|
||||
<object-name>PrbWinHeatBtn2O</object-name>
|
||||
<object-name>PTU1F</object-name>
|
||||
<object-name>PTU2O</object-name>
|
||||
<object-name>RamAirBtn2O</object-name>
|
||||
<object-name>IR1Btn1F</object-name>
|
||||
<object-name>IR1Btn2O</object-name>
|
||||
<object-name>IR2Btn1F</object-name>
|
||||
<object-name>IR2Btn2O</object-name>
|
||||
<object-name>IR3Btn1F</object-name>
|
||||
<object-name>IR3Btn2O</object-name>
|
||||
<object-name>RcdrGndCtlBtn2O</object-name>
|
||||
<object-name>RFuelTank1Btn1F</object-name>
|
||||
<object-name>RFuelTank1Btn2O</object-name>
|
||||
<object-name>RFuelTank2Btn1F</object-name>
|
||||
<object-name>RFuelTank2Btn2O</object-name>
|
||||
<object-name>SEC2Btn1F</object-name>
|
||||
<object-name>SEC2Btn2O</object-name>
|
||||
<object-name>SEC3Btn1F</object-name>
|
||||
<object-name>SEC3Btn2O</object-name>
|
||||
<object-name>VentBlowBtn2O</object-name>
|
||||
<object-name>VentExtractBtn1F</object-name>
|
||||
<object-name>VentExtractBtn2O</object-name>
|
||||
<object-name>YellowElecPump1F</object-name>
|
||||
<object-name>YellowElecPump2O</object-name>
|
||||
<object-name>YellowEngPump1F</object-name>
|
||||
<object-name>YellowEngPump2O</object-name>
|
||||
<condition>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc-ess</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Eng1BleedBtn1F</object-name>
|
||||
<object-name>Eng1BleedBtn2O</object-name>
|
||||
<object-name>Eng2BleedBtn1F</object-name>
|
||||
<object-name>Eng2BleedBtn2O</object-name>
|
||||
<object-name>APUBleedBtn1F</object-name>
|
||||
<object-name>APUBleedBtn2O</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc-2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc-ess-shed</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
@ -3048,7 +3048,6 @@
|
|||
<type>select</type>
|
||||
<object-name>BatteryBtn12O</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/electrical/switches/bat-1</property>
|
||||
|
@ -3059,11 +3058,6 @@
|
|||
<value>1</value>
|
||||
</equals>
|
||||
</or>
|
||||
<greater-than>
|
||||
<property>systems/electrical/bus/dc-bat</property>
|
||||
<value>25</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
@ -3115,7 +3109,6 @@
|
|||
<type>select</type>
|
||||
<object-name>BatteryBtn22O</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/electrical/switches/bat-2</property>
|
||||
|
@ -3126,11 +3119,6 @@
|
|||
<value>1</value>
|
||||
</equals>
|
||||
</or>
|
||||
<greater-than>
|
||||
<property>systems/electrical/bus/dc-bat</property>
|
||||
<value>25</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
@ -3276,6 +3264,7 @@
|
|||
<type>select</type>
|
||||
<object-name>Gen1Btn1F</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<equals>
|
||||
<property>systems/electrical/light/gen-1-fault</property>
|
||||
|
@ -3286,6 +3275,8 @@
|
|||
<value>1</value>
|
||||
</equals>
|
||||
</or>
|
||||
<property>/systems/electrical/sources/idg-1/gcu-1-powered</property>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
@ -3520,18 +3511,10 @@
|
|||
<property>controls/electrical/switches/ground-cart</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<and>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</and>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
|
@ -3586,6 +3569,7 @@
|
|||
<type>select</type>
|
||||
<object-name>Gen2Btn1F</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<equals>
|
||||
<property>systems/electrical/light/gen-2-fault</property>
|
||||
|
@ -3596,6 +3580,8 @@
|
|||
<value>1</value>
|
||||
</equals>
|
||||
</or>
|
||||
<property>/systems/electrical/sources/idg-2/gcu-2-powered</property>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
@ -6662,10 +6648,28 @@
|
|||
<type>material</type>
|
||||
<object-name>Eng1FireBtn</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<property>systems/fire/engine1/warning-active</property>
|
||||
<property>controls/switches/annun-test</property>
|
||||
</or>
|
||||
<or>
|
||||
<!-- 35LP -->
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<!-- 37LP -->
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<emission>
|
||||
<red>1.0</red>
|
||||
|
@ -7009,10 +7013,28 @@
|
|||
<type>material</type>
|
||||
<object-name>APUFireBtn</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<property>systems/fire/apu/warning-active</property>
|
||||
<property>controls/switches/annun-test</property>
|
||||
</or>
|
||||
<or>
|
||||
<!-- 35LP -->
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<!-- 37LP -->
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<emission>
|
||||
<red>1.0</red>
|
||||
|
@ -7162,10 +7184,28 @@
|
|||
<type>material</type>
|
||||
<object-name>Eng2FireBtn</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<property>systems/fire/engine2/warning-active</property>
|
||||
<property>controls/switches/annun-test</property>
|
||||
</or>
|
||||
<or>
|
||||
<!-- 35LP -->
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-si-bus</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-ess-shed</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
<!-- 37LP -->
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<emission>
|
||||
<red>1.0</red>
|
||||
|
|
|
@ -3564,13 +3564,13 @@ var messages_right_memo = func {
|
|||
wing_aice.active = 0;
|
||||
}
|
||||
|
||||
if (systems.PNEU.Switch.apu.getValue() == 1 and pts.APU.rpm.getValue() >= 95) {
|
||||
if (systems.PNEU.Switch.apu.getValue() == 1 and systems.PNEU.Valves.apu.getValue() != 0 and systems.APUController.APU != nil and systems.APUController.APU.signals.available.getBoolValue()) {
|
||||
apu_bleed.active = 1;
|
||||
} else {
|
||||
apu_bleed.active = 0;
|
||||
}
|
||||
|
||||
if (apu_bleed.active == 0 and pts.APU.rpm.getValue() >= 95) {
|
||||
if (apu_bleed.active == 0 and systems.APUController.APU != nil and systems.APUController.APU.signals.available.getBoolValue()) {
|
||||
apu_avail.active = 1;
|
||||
} else {
|
||||
apu_avail.active = 0;
|
||||
|
|
|
@ -4,11 +4,6 @@
|
|||
##################
|
||||
# Init Functions #
|
||||
##################
|
||||
|
||||
var database1 = 0;
|
||||
var database2 = 0;
|
||||
var code1 = 0;
|
||||
var code2 = 0;
|
||||
var gear0 = 0;
|
||||
var state1 = 0;
|
||||
var state2 = 0;
|
||||
|
@ -71,14 +66,13 @@ var FMGCinit = func {
|
|||
FMGCInternal.mngSpdCmd = 157;
|
||||
FMGCInternal.mngKtsMach = 0;
|
||||
FMGCInternal.machSwitchover = 0;
|
||||
setprop("/FMGC/internal/loc-source", "NAV0");
|
||||
setprop("/FMGC/internal/optalt", 0);
|
||||
setprop("/FMGC/internal/landing-time", -99);
|
||||
FMGCInternal.landingTime = -99;
|
||||
FMGCInternal.blockFuelTime = -99;
|
||||
FMGCInternal.fuelPredTime = -99;
|
||||
FMGCAlignTime[0].setValue(-99);
|
||||
FMGCAlignTime[1].setValue(-99);
|
||||
FMGCAlignTime[2].setValue(-99);
|
||||
setprop("/FMGC/internal/block-fuel-time", -99);
|
||||
setprop("/FMGC/internal/fuel-pred-time", -99);
|
||||
masterFMGC.start();
|
||||
radios.start();
|
||||
}
|
||||
|
@ -220,6 +214,10 @@ var FMGCInternal = {
|
|||
mngSpd: 0,
|
||||
mngSpdCmd: 0,
|
||||
|
||||
landingTime: -99,
|
||||
blockFuelTime: -99,
|
||||
fuelPredTime: -99,
|
||||
|
||||
# RADNAV
|
||||
ADF1: {
|
||||
freqSet: 0,
|
||||
|
@ -913,18 +911,16 @@ var masterFMGC = maketimer(0.2, func {
|
|||
############################
|
||||
#handle radios, runways, v1/vr/v2
|
||||
############################
|
||||
var airportRadiosPhase = nil;
|
||||
var updateAirportRadios = func {
|
||||
|
||||
airportRadiosPhase = FMGCInternal.phase;
|
||||
|
||||
departure_rwy = fmgc.flightPlanController.flightplans[2].departure_runway;
|
||||
destination_rwy = fmgc.flightPlanController.flightplans[2].destination_runway;
|
||||
if (airportRadiosPhase >= 2 and destination_rwy != nil) {
|
||||
|
||||
if (FMGCInternal.phase >= 2 and destination_rwy != nil) {
|
||||
var airport = airportinfo(FMGCInternal.arrApt);
|
||||
setprop("/FMGC/internal/ldg-elev", airport.elevation * M2FT); # eventually should be runway elevation
|
||||
magnetic_hdg = geo.normdeg(destination_rwy.heading - getprop("/environment/magnetic-variation-deg"));
|
||||
magnetic_hdg = geo.normdeg(destination_rwy.heading - pts.Environment.magVar.getValue());
|
||||
runway_ils = destination_rwy.ils_frequency_mhz;
|
||||
|
||||
if (runway_ils != nil and !fmgc.FMGCInternal.ILS.freqSet and !fmgc.FMGCInternal.ILS.crsSet) {
|
||||
fmgc.FMGCInternal.ILS.freqCalculated = runway_ils;
|
||||
pts.Instrumentation.Nav.Frequencies.selectedMhz[0].setValue(runway_ils);
|
||||
|
@ -935,9 +931,10 @@ var updateAirportRadios = func {
|
|||
} elsif (!fmgc.FMGCInternal.ILS.crsSet) {
|
||||
pts.Instrumentation.Nav.Radials.selectedDeg[0].setValue(magnetic_hdg);
|
||||
}
|
||||
} elsif (airportRadiosPhase <= 1 and departure_rwy != nil) {
|
||||
magnetic_hdg = geo.normdeg(departure_rwy.heading - getprop("/environment/magnetic-variation-deg"));
|
||||
} elsif (FMGCInternal.phase <= 1 and departure_rwy != nil) {
|
||||
magnetic_hdg = geo.normdeg(departure_rwy.heading - pts.Environment.magVar.getValue());
|
||||
runway_ils = departure_rwy.ils_frequency_mhz;
|
||||
|
||||
if (runway_ils != nil and !fmgc.FMGCInternal.ILS.freqSet and !fmgc.FMGCInternal.ILS.crsSet) {
|
||||
fmgc.FMGCInternal.ILS.freqCalculated = runway_ils;
|
||||
pts.Instrumentation.Nav.Frequencies.selectedMhz[0].setValue(runway_ils);
|
||||
|
@ -1119,27 +1116,35 @@ var ManagedSPD = maketimer(0.25, func {
|
|||
}
|
||||
});
|
||||
|
||||
# Nav Database
|
||||
var navDataBase = {
|
||||
currentCode: "AB20170101",
|
||||
currentDate: "01JAN-28JAN",
|
||||
standbyCode: "AB20170102",
|
||||
standbyDate: "29JAN-26FEB",
|
||||
};
|
||||
|
||||
var tempStoreCode = nil;
|
||||
var tempStoreDate = nil;
|
||||
var switchDatabase = func {
|
||||
database1 = getprop("/FMGC/internal/navdatabase");
|
||||
database2 = getprop("/FMGC/internal/navdatabase2");
|
||||
code1 = getprop("/FMGC/internal/navdatabasecode");
|
||||
code2 = getprop("/FMGC/internal/navdatabasecode2");
|
||||
setprop("/FMGC/internal/navdatabase", database2);
|
||||
setprop("/FMGC/internal/navdatabase2", database1);
|
||||
setprop("/FMGC/internal/navdatabasecode", code2);
|
||||
setprop("/FMGC/internal/navdatabasecode2", code1);
|
||||
tempStoreCode = navDataBase.currentCode;
|
||||
tempStoreDate = navDataBase.currentDate;
|
||||
navDataBase.currentCode = navDataBase.standbyCode;
|
||||
navDataBase.currentDate = navDataBase.standbyDate;
|
||||
navDataBase.standbyCode = tempStoreCode;
|
||||
navDataBase.standbyDate = tempStoreDate;
|
||||
}
|
||||
|
||||
# Landing to phase 7
|
||||
setlistener("/gear/gear[1]/wow", func() {
|
||||
if (getprop("/gear/gear[1]/wow") == 0 and timer30secLanding.isRunning) {
|
||||
setlistener("/gear/gear[1]/wow", func(val) {
|
||||
if (val.getValue() == 0 and timer30secLanding.isRunning) {
|
||||
timer30secLanding.stop();
|
||||
setprop("/FMGC/internal/landing-time", -99);
|
||||
FMGCInternal.landingTime = -99;
|
||||
}
|
||||
|
||||
if (pts.Gear.wow[1].getValue() and getprop("/FMGC/internal/landing-time") == -99) {
|
||||
if (val.getValue() and FMGCInternal.landingTime == -99) {
|
||||
timer30secLanding.start();
|
||||
setprop("/FMGC/internal/landing-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
FMGCInternal.landingTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
}
|
||||
}, 0, 0);
|
||||
|
||||
|
@ -1182,34 +1187,34 @@ setlistener("/systems/navigation/adr/operating-3", func() {
|
|||
# Calculate Block Fuel
|
||||
setlistener("/FMGC/internal/block-calculating", func() {
|
||||
if (timer3blockFuel.isRunning) {
|
||||
setprop("/FMGC/internal/block-fuel-time", -99);
|
||||
FMGCInternal.blockFuelTime = -99;
|
||||
timer3blockFuel.start();
|
||||
setprop("/FMGC/internal/block-fuel-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
FMGCInternal.blockFuelTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
}
|
||||
|
||||
if (getprop("/FMGC/internal/block-fuel-time") == -99) {
|
||||
if (FMGCInternal.blockFuelTime == -99) {
|
||||
timer3blockFuel.start();
|
||||
setprop("/FMGC/internal/block-fuel-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
FMGCInternal.blockFuelTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
}
|
||||
}, 0, 0);
|
||||
|
||||
# Calculate Fuel Prediction
|
||||
setlistener("/FMGC/internal/fuel-calculating", func() {
|
||||
if (timer5fuelPred.isRunning) {
|
||||
setprop("/FMGC/internal/fuel-pred-time", -99);
|
||||
FMGCInternal.fuelPredTime = -99;
|
||||
timer5fuelPred.start();
|
||||
setprop("/FMGC/internal/fuel-pred-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
FMGCInternal.fuelPredTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
}
|
||||
|
||||
if (getprop("/FMGC/internal/fuel-pred-time") == -99) {
|
||||
if (FMGCInternal.fuelPredTime == -99) {
|
||||
timer5fuelPred.start();
|
||||
setprop("/FMGC/internal/fuel-pred-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
FMGCInternal.fuelPredTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
}
|
||||
}, 0, 0);
|
||||
|
||||
# Maketimers
|
||||
var timer30secLanding = maketimer(1, func() {
|
||||
if (pts.Sim.Time.elapsedSec.getValue() > getprop("/FMGC/internal/landing-time") + 30) {
|
||||
if (pts.Sim.Time.elapsedSec.getValue() > FMGCInternal.landingTime + 30) {
|
||||
FMGCInternal.phase = 7;
|
||||
|
||||
if (FMGCInternal.costIndexSet) {
|
||||
|
@ -1217,7 +1222,7 @@ var timer30secLanding = maketimer(1, func() {
|
|||
} else {
|
||||
setprop("/FMGC/internal/last-cost-index", 0);
|
||||
}
|
||||
setprop("/FMGC/internal/landing-time", -99);
|
||||
FMGCInternal.landingTime = -99;
|
||||
timer30secLanding.stop();
|
||||
}
|
||||
});
|
||||
|
@ -1247,21 +1252,21 @@ var timer48gpsAlign3 = maketimer(1, func() {
|
|||
});
|
||||
|
||||
var timer3blockFuel = maketimer(1, func() {
|
||||
if (pts.Sim.Time.elapsedSec.getValue() > getprop("/FMGC/internal/block-fuel-time") + 3) {
|
||||
if (pts.Sim.Time.elapsedSec.getValue() > FMGCInternal.blockFuelTime + 3) {
|
||||
#updateFuel();
|
||||
fmgc.FMGCInternal.blockCalculating = 0;
|
||||
fmgc.blockCalculating.setValue(0);
|
||||
setprop("/FMGC/internal/block-fuel-time", -99);
|
||||
FMGCInternal.blockFuelTime = -99;
|
||||
timer3blockFuel.stop();
|
||||
}
|
||||
});
|
||||
|
||||
var timer5fuelPred = maketimer(1, func() {
|
||||
if (pts.Sim.Time.elapsedSec.getValue() > getprop("/FMGC/internal/fuel-pred-time") + 5) {
|
||||
if (pts.Sim.Time.elapsedSec.getValue() > FMGCInternal.fuelPredTime + 5) {
|
||||
#updateFuel();
|
||||
fmgc.FMGCInternal.fuelCalculating = 0;
|
||||
fmgc.fuelCalculating.setValue(0);
|
||||
setprop("/FMGC/internal/fuel-pred-time", -99);
|
||||
FMGCInternal.fuelPredTime = -99;
|
||||
timer5fuelPred.stop();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -25,10 +25,6 @@ var MCDU_reset = func(i) {
|
|||
setprop("/FMGC/keyboard-right", 0);
|
||||
|
||||
#ACCONFIG
|
||||
setprop("/FMGC/internal/navdatabase", "01JAN-28JAN");
|
||||
setprop("/FMGC/internal/navdatabase2", "29JAN-26FEB");
|
||||
setprop("/FMGC/internal/navdatabasecode", "AB20170101");
|
||||
setprop("/FMGC/internal/navdatabasecode2", "AB20170102");
|
||||
setprop("/FMGC/print/mcdu/page1/L1auto", 0);
|
||||
setprop("/FMGC/print/mcdu/page1/L2auto", 0);
|
||||
setprop("/FMGC/print/mcdu/page1/L3auto", 0);
|
||||
|
|
|
@ -273,24 +273,6 @@ var APU = {
|
|||
me.autoStop();
|
||||
}
|
||||
|
||||
if (systems.ELEC.Bus.dcBat.getValue() < 25) {
|
||||
if (!me._powerLost) {
|
||||
me._powerLost = 1;
|
||||
settimer(func() {
|
||||
if (me._powerLost) {
|
||||
if (me.GenericControls.starter.getValue()) {
|
||||
me.GenericControls.starter.setValue(0);
|
||||
}
|
||||
if (me.state != 0) {
|
||||
me.autoStop();
|
||||
}
|
||||
}
|
||||
}, 0.2);
|
||||
}
|
||||
} else {
|
||||
me._powerLost = 0;
|
||||
}
|
||||
|
||||
if (systems.ELEC.EmerElec.getValue() == 1 and (systems.ELEC.EmerElec45.getValue() != 1 and systems.ELEC.Source.EmerGen.voltsRelay.getValue() < 110)) {
|
||||
me.inhibitEMERELEC = 1;
|
||||
} else {
|
||||
|
@ -316,6 +298,19 @@ var APUController = {
|
|||
}
|
||||
};
|
||||
|
||||
setlistener("/systems/apu/shutdown-power-loss", func(val) {
|
||||
if (APUController.APU != nil) {
|
||||
if (val.getBoolValue()) {
|
||||
if (APUController.APU.GenericControls.starter.getValue()) {
|
||||
APUController.APU.GenericControls.starter.setValue(0);
|
||||
}
|
||||
if (APUController.APU.state != 0) {
|
||||
APUController.APU.autoStop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 0, 0);
|
||||
|
||||
var _masterTime = 0;
|
||||
setlistener("/controls/apu/master", func() {
|
||||
if (APUController.APU != nil) {
|
||||
|
|
|
@ -184,6 +184,27 @@
|
|||
<output>/systems/apu/oil/level-l</output>
|
||||
</fcs_function>
|
||||
|
||||
<switch name="/systems/apu/shutdown-power-loss-cmd">
|
||||
<default value="0"/>
|
||||
<test logic="AND" value="1">
|
||||
/systems/electrical/bus/dc-bat lt 25
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<actuator name="/systems/apu/shutdown-power-loss-timer">
|
||||
<input>/systems/apu/shutdown-power-loss-cmd</input>
|
||||
<rate_limit sense="incr">5</rate_limit>
|
||||
<rate_limit sense="decr">100</rate_limit>
|
||||
</actuator>
|
||||
|
||||
<switch name="/systems/apu/shutdown-power-loss">
|
||||
<default value="0"/>
|
||||
<test logic="AND" value="1">
|
||||
/systems/apu/shutdown-power-loss-timer eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
||||
</channel>
|
||||
|
||||
</system>
|
||||
|
|
|
@ -2153,7 +2153,7 @@
|
|||
|
||||
<channel name="Emergency Electric Logic" execrate="8">
|
||||
|
||||
<switch name="/systems/electrical/some-electric-thingie/emer-elec-config">
|
||||
<switch name="/systems/electrical/some-electric-thingie/emer-elec-config-cmd">
|
||||
<default value="0"/>
|
||||
<test logic="AND" value="1">
|
||||
/systems/electrical/bus/ac-1 lt 110
|
||||
|
@ -2163,20 +2163,33 @@
|
|||
/systems/electrical/relay/ext-epc/contact-pos eq 0
|
||||
<test logic="OR">
|
||||
/controls/electrical/switches/gen-1 eq 0
|
||||
/systems/failures/electrical/gen-1 eq 1
|
||||
/ECAM/warnings/logic/gen-1-inop eq 1
|
||||
</test>
|
||||
<test logic="OR">
|
||||
/controls/electrical/switches/gen-2 eq 0
|
||||
/systems/failures/electrical/gen-2 eq 1
|
||||
/ECAM/warnings/logic/gen-2-inop eq 1
|
||||
</test>
|
||||
<test logic="OR">
|
||||
/controls/electrical/switches/apu eq 0
|
||||
/systems/failures/electrical/apu eq 1
|
||||
/engines/engine[2]/n1 lt 94.9
|
||||
/ECAM/warnings/logic/apu-gen-fault eq 1
|
||||
/systems/apu/available eq 0
|
||||
</test>
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<actuator name="/systems/electrical/some-electric-thingie/emer-elec-config-timer">
|
||||
<input>/systems/electrical/some-electric-thingie/emer-elec-config-cmd</input>
|
||||
<rate_limit sense="incr">5</rate_limit>
|
||||
<rate_limit sense="decr">100</rate_limit>
|
||||
</actuator>
|
||||
|
||||
<switch name="/systems/electrical/some-electric-thingie/emer-elec-config">
|
||||
<default value="0"/>
|
||||
<test logic="OR" value="1">
|
||||
/systems/electrical/some-electric-thingie/emer-elec-config-timer eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/systems/electrical/some-electric-thingie/emer-elec-config-generator-1-bustie">
|
||||
<default value="0"/>
|
||||
<test logic="AND" value="1">
|
||||
|
|
|
@ -2833,7 +2833,7 @@
|
|||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/ECAM/warnings/logic/eng/dual-failure-5-sec-input">
|
||||
<switch name="/ECAM/warnings/logic/eng/dual-failure-2-sec-input">
|
||||
<default value="0"/>
|
||||
<test logic="AND" value="1">
|
||||
/engines/engine[0]/n2-actual lt 59.4
|
||||
|
@ -2841,8 +2841,8 @@
|
|||
</test>
|
||||
</switch>
|
||||
|
||||
<actuator name="/ECAM/warnings/logic/eng/dual-failure-5-sec">
|
||||
<input>/ECAM/warnings/logic/eng/dual-failure-5-sec-input</input>
|
||||
<actuator name="/ECAM/warnings/logic/eng/dual-failure-2-sec">
|
||||
<input>/ECAM/warnings/logic/eng/dual-failure-2-sec-input</input>
|
||||
<rate_limit sense="incr">0.5</rate_limit>
|
||||
<rate_limit sense="decr">100</rate_limit>
|
||||
</actuator>
|
||||
|
@ -2870,7 +2870,7 @@
|
|||
/controls/engines/engine[0]/cutoff-switch eq 1
|
||||
/controls/engines/engine[1]/cutoff-switch eq 1
|
||||
</test>
|
||||
/ECAM/warnings/logic/eng/dual-failure-5-sec eq 1
|
||||
/ECAM/warnings/logic/eng/dual-failure-2-sec eq 1
|
||||
</test>
|
||||
</test>
|
||||
</switch>
|
||||
|
|
|
@ -53,12 +53,4 @@
|
|||
</input>
|
||||
<output>/controls/lighting/overhead-panel-norm-digital</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>/controls/lighting/annunciator-lights-tied</input>
|
||||
<output>/controls/lighting/annunciator-lights</output>
|
||||
</filter>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -71,37 +71,29 @@
|
|||
<switch name="/controls/lighting/fcu-panel-norm-tied">
|
||||
<default value="0" />
|
||||
<test value="/controls/lighting/fcu-panel-knb">
|
||||
/systems/electrical/bus/ac-1 gt 25
|
||||
/systems/electrical/bus/ac-1 gt 110
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/controls/lighting/fcu-digit-norm-tied">
|
||||
<default value="0" />
|
||||
<test value="/controls/lighting/fcu-digit-knb">
|
||||
/systems/electrical/bus/ac-1 gt 25
|
||||
<test logic="OR" value="/controls/lighting/fcu-digit-knb">
|
||||
/systems/electrical/bus/ac-si-bus ge 110
|
||||
/systems/electrical/bus/ac-ess-shed ge 110
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/controls/lighting/main-panel-norm-tied">
|
||||
<default value="0" />
|
||||
<test value="/controls/lighting/main-panel-knb">
|
||||
/systems/electrical/bus/ac-1 gt 25
|
||||
/systems/electrical/bus/ac-1 gt 110
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/controls/lighting/overhead-panel-norm-tied">
|
||||
<default value="0" />
|
||||
<test value="/controls/lighting/overhead-panel-knb">
|
||||
/systems/electrical/bus/ac-1 gt 25
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/controls/lighting/annunciator-lights-tied">
|
||||
<default value="0" />
|
||||
<test logic="OR" value="1"> <!-- TODO: add static inverter as a source, also dc-2 switching -->
|
||||
/systems/electrical/bus/ac-1 gt 110
|
||||
/systems/electrical/bus/ac-2 gt 110
|
||||
/systems/electrical/bus/dc-2 gt 25
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
|
Loading…
Reference in a new issue