Skip to content

Commit

Permalink
fixes #337
Browse files Browse the repository at this point in the history
  • Loading branch information
mSparks43 committed Mar 25, 2024
1 parent 8815e50 commit 8af3eea
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 15 deletions.
Binary file modified README.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions plugins/xtlua/scripts/B747.05.xt.simconfig/version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,4 @@ fmcVersion="XP1209-2024/03/05 22:11"
fmcVersion="XP1209-2024/03/10 22:28"
fmcVersion="XP1209-2024/03/10 23:30"
fmcVersion="XP1209-2024/03/11 00:03"
fmcVersion="XP1209-2024/03/25 01:34"
23 changes: 18 additions & 5 deletions plugins/xtlua/scripts/B747.40.xt.engines/B747.40.xt.engines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,11 @@ function B747_engine_start_sw_off(engine)
if simDR_engine_starter_status[3] > 3 and B747_starter_status[4]==1 then simCMD_starter_on_4:stop() simCMD_starter_off_4:once() simDR_engine_igniter_on[0]=0 B747_starter_status[4]=0 end
end
end
B747DR_engine01_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine01/ext_switch/pos_arm", "number")
B747DR_engine02_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine02/ext_switch/pos_arm", "number")
B747DR_engine03_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine03/ext_switch/pos_arm", "number")
B747DR_engine04_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine04/ext_switch/pos_arm", "number")
function B747_electronic_engine_control()
Expand Down Expand Up @@ -1965,7 +1970,9 @@ function B747_electronic_engine_control()


-- MANUAL START
if B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
if B747DR_engine01_fire_ext_switch_pos_arm==1 then
B747DR_engine_fuel_valve_pos[0] = 0
elseif B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_fuel_control_toggle_switch_pos[0] == 1.0 -- FUEL CONTROL SWITCH SET TO "RUN"
then
B747DR_engine_fuel_valve_pos[0] = 1 -- OPEN THE VALVE
Expand All @@ -1976,7 +1983,7 @@ function B747_electronic_engine_control()
then
B747DR_engine_fuel_valve_pos[0] = 1 -- OPEN THE VALVE
else
B747DR_engine_fuel_valve_pos[0] = 0 -- VALVE IS NORMALLY CLOSED
B747DR_engine_fuel_valve_pos[0] = 0 -- VALVE IS NORMALLY CLOSED
end
simDR_engine_fuel_mix_ratio[0] = B747DR_engine_fuel_valve_pos[0] -- SET SIM MIXTURE RATIO

Expand All @@ -1986,7 +1993,9 @@ function B747_electronic_engine_control()


-- MANUAL START
if B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
if B747DR_engine02_fire_ext_switch_pos_arm==1 then
B747DR_engine_fuel_valve_pos[1] = 0
elseif B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_fuel_control_toggle_switch_pos[1] == 1.0 -- FUEL CONTROL SWITCH SET TO "RUN"
then
B747DR_engine_fuel_valve_pos[1] = 1 -- OPEN THE VALVE
Expand All @@ -2007,7 +2016,9 @@ function B747_electronic_engine_control()


-- MANUAL START
if B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
if B747DR_engine03_fire_ext_switch_pos_arm==1 then
B747DR_engine_fuel_valve_pos[2] = 0
elseif B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_fuel_control_toggle_switch_pos[2] == 1.0 -- FUEL CONTROL SWITCH SET TO "RUN"
then
B747DR_engine_fuel_valve_pos[2] = 1 -- OPEN THE VALVE
Expand All @@ -2028,7 +2039,9 @@ function B747_electronic_engine_control()


-- MANUAL START
if B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
if B747DR_engine04_fire_ext_switch_pos_arm==1 then
B747DR_engine_fuel_valve_pos[3] = 0
elseif B747DR_button_switch_position[45] < 0.5 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_fuel_control_toggle_switch_pos[3] == 1.0 -- FUEL CONTROL SWITCH SET TO "RUN"
then
B747DR_engine_fuel_valve_pos[3] = 1 -- OPEN THE VALVE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ function B747_fltCtrols_EICAS_msg()
elseif simDR_hyd_press_1_2 < 1000 and simDR_parking_brake_ratio > 0 then
simDR_parking_brake_ratio = B747_animate_value(simDR_parking_brake_ratio,0,0,1,1)
else
if B747DR_parking_brake_ratio~=last_B747DR_Brake then --manually changed
if B747DR_parking_brake_ratio~=last_B747DR_Brake and B747DR_parking_brake_ratio>0.01 then --manually changed
simDR_parking_brake_ratio = B747DR_parking_brake_ratio
end
last_simDR_Brake=simDR_parking_brake_ratio
Expand Down
21 changes: 12 additions & 9 deletions plugins/xtlua_keysystems/scripts/B747.55.xt.air/B747.55.xt.air.lua
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ end
B747DR_engine01_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine01/ext_switch/pos_arm", "number")
B747DR_engine02_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine02/ext_switch/pos_arm", "number")
B747DR_engine03_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine03/ext_switch/pos_arm", "number")
B747DR_engine04_fire_ext_switch_pos_arm = deferred_dataref("laminar/B747/fire/engine04/ext_switch/pos_arm", "number")
----- BLEED AIR VALVES ------------------------------------------------------------------
Expand Down Expand Up @@ -497,7 +500,7 @@ function B747_bleed_air_valves()
----- ENGINE #1 BLEED AIR VALVE -----------------------------------------------------
if B747DR_button_switch_position[77] > 0.95 then -- ENGINE #1 BLEED AIR BUTTON SWITCH
if B747DR_button_switch_position[77] > 0.95 and B747DR_engine01_fire_ext_switch_pos_arm==0 then -- ENGINE #1 BLEED AIR BUTTON SWITCH
if B747bleedAir.engine1.psi >= bleed_valve_min_act_press -- BLEED AIR REQUIRED TO OPEN THE VALVE
or
-- ENGINE START
Expand All @@ -515,7 +518,7 @@ function B747_bleed_air_valves()
----- ENGINE #1 BLEED AIR START VALVE -----------------------------------------------
if B747bleedAir.engine1.bleed_air_valve.pos > 0.95 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
if B747bleedAir.engine1.bleed_air_valve.pos > 0.95 and B747DR_engine01_fire_ext_switch_pos_arm==0 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
-- MANUAL START
if B747DR_button_switch_position[45] < 0.05 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_toggle_switch_position[16] > 0.95 -- ENGINE START SWITCH "PULLED"
Expand All @@ -538,7 +541,7 @@ function B747_bleed_air_valves()
----- ENGINE #2 BLEED AIR VALVE -----------------------------------------------------
if B747DR_button_switch_position[78] > 0.95 then -- ENGINE #2 BLEED AIR BUTTON SWITCH
if B747DR_button_switch_position[78] > 0.95 and B747DR_engine02_fire_ext_switch_pos_arm==0 then -- ENGINE #2 BLEED AIR BUTTON SWITCH
if B747bleedAir.engine2.psi >= bleed_valve_min_act_press -- BLEED AIR REQUIRED TO OPEN THE VALVE
or
-- ENGINE START
Expand All @@ -556,7 +559,7 @@ function B747_bleed_air_valves()
----- ENGINE #2 BLEED AIR START VALVE -----------------------------------------------
if B747bleedAir.engine2.bleed_air_valve.pos > 0.95 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
if B747bleedAir.engine2.bleed_air_valve.pos > 0.95 and B747DR_engine02_fire_ext_switch_pos_arm==0 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
-- MANUAL START
if B747DR_button_switch_position[45] < 0.05 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_toggle_switch_position[17] > 0.95 -- ENGINE START SWITCH "PULLED"
Expand All @@ -579,7 +582,7 @@ function B747_bleed_air_valves()
----- ENGINE #3 BLEED AIR VALVE -----------------------------------------------------
if B747DR_button_switch_position[79] > 0.95 then -- ENGINE #3 BLEED AIR BUTTON SWITCH
if B747DR_button_switch_position[79] > 0.95 and B747DR_engine03_fire_ext_switch_pos_arm==0 then -- ENGINE #3 BLEED AIR BUTTON SWITCH
if B747bleedAir.engine3.psi >= bleed_valve_min_act_press -- BLEED AIR REQUIRED TO OPEN THE VALVE
or
-- ENGINE START
Expand All @@ -597,7 +600,7 @@ function B747_bleed_air_valves()
----- ENGINE #3 BLEED AIR START VALVE -----------------------------------------------
if B747bleedAir.engine3.bleed_air_valve.pos > 0.95 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
if B747bleedAir.engine3.bleed_air_valve.pos > 0.95 and B747DR_engine03_fire_ext_switch_pos_arm==0 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
-- MANUAL START
if B747DR_button_switch_position[45] < 0.05 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_toggle_switch_position[18] > 0.95 -- ENGINE START SWITCH "PULLED"
Expand All @@ -620,7 +623,7 @@ function B747_bleed_air_valves()
----- ENGINE #4 BLEED AIR VALVE -----------------------------------------------------
if B747DR_button_switch_position[80] > 0.95 then -- ENGINE #4 BLEED AIR BUTTON SWITCH
if B747DR_button_switch_position[80] > 0.95 and B747DR_engine04_fire_ext_switch_pos_arm==0 then -- ENGINE #4 BLEED AIR BUTTON SWITCH
if B747bleedAir.engine4.psi >= bleed_valve_min_act_press -- BLEED AIR REQUIRED TO OPEN THE VALVE
or
-- ENGINE START
Expand All @@ -638,7 +641,7 @@ function B747_bleed_air_valves()
----- ENGINE #4 BLEED AIR START VALVE -----------------------------------------------
if B747bleedAir.engine4.bleed_air_valve.pos > 0.95 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
if B747bleedAir.engine4.bleed_air_valve.pos > 0.95 and B747DR_engine04_fire_ext_switch_pos_arm==0 then -- ENGINE BLEED VALVE OPEN FOR REVERSE FLOW
-- MANUAL START
if B747DR_button_switch_position[45] < 0.05 -- AUTOSTART BUTTON NOT DEPRESSED
and B747DR_toggle_switch_position[19] > 0.95 -- ENGINE START SWITCH "PULLED"
Expand Down

0 comments on commit 8af3eea

Please sign in to comment.