Skip to content

Commit

Permalink
Michael Dittus fixed the ECAM page select functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeherwig committed Feb 6, 2023
1 parent 79f313f commit 78ea879
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 12 additions & 12 deletions A32nx/LINDA/aircrafts/FBW A320/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2218,73 +2218,73 @@ function A32nx_PED_ECAM_TOCONFIG_press()
end

function A32nx_PED_ECAM_eng()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_ENG")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 0)
eicasEcam2Page = 1
DspShow('ECAM','eng')
end

function A32nx_PED_ECAM_bleed()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_BLEED")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 1)
eicasEcam2Page = 2
DspShow('ECAM','bled')
end

function A32nx_PED_ECAM_press()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_PRESS")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 2)
eicasEcam2Page = 3
DspShow('ECAM','pres')
end

function A32nx_PED_ECAM_elec()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_ELEC")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 3)
eicasEcam2Page = 4
DspShow('ECAM','elec')
end

function A32nx_PED_ECAM_hyd()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_HYD")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 4)
eicasEcam2Page = 5
DspShow('ECAM','hyd')
end

function A32nx_PED_ECAM_fuel()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_FUEL")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 5)
eicasEcam2Page = 6
DspShow('ECAM','fuel')
end

function A32nx_PED_ECAM_apu()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_APU")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 6)
eicasEcam2Page = 7
DspShow('ECAM','apu')
end

function A32nx_PED_ECAM_cond()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_COND")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 7)
eicasEcam2Page = 8
DspShow('ECAM','cond')
end

function A32nx_PED_ECAM_door()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_DOOR")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 8)
eicasEcam2Page = 9
DspShow('ECAM','door')
end

function A32nx_PED_ECAM_wheel()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_WHEEL")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 9)
eicasEcam2Page = 10
DspShow('ECAM','whel')
end

function A32nx_PED_ECAM_fctl()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_FTCL")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 10)
eicasEcam2Page = 11
DspShow('ECAM','fctl')
end

function A32nx_PED_ECAM_sts()
ipc.activateHvar("H:A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_STS")
ipc.writeLvar("L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX", 11)
eicasEcam2Page = 12
DspShow('ECAM','sts')
end
Expand Down
4 changes: 4 additions & 0 deletions A32nx/LINDA/aircrafts/FBW A320/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
Author: Joe Herwig / Andrew Gransden
Falk Scherber (0.8.2)
Neil Clements (0.4.4 / 0.6.1)
Michael Dittus (1.0.6)

------------------------------------------------------------------------
1.0.6
° fixed dedicated ECAM page selection keys (credits to Micha Dittus)

1.0.5
° fixed further functions by replacing Event pointer with execCalcCode.

Expand Down

0 comments on commit 78ea879

Please sign in to comment.