Improve elec.nas
This commit is contained in:
parent
11562bb9a8
commit
6d22da6551
2 changed files with 8 additions and 7 deletions
|
@ -187,12 +187,12 @@ var ELEC = {
|
||||||
setprop("/systems/electrical/outputs/transponder", 0);
|
setprop("/systems/electrical/outputs/transponder", 0);
|
||||||
setprop("/systems/electrical/outputs/turn-coordinator", 0);
|
setprop("/systems/electrical/outputs/turn-coordinator", 0);
|
||||||
|
|
||||||
screens = [screen.new("DU1","LCD",60,50,"/controls/lighting/DU/du1","/systems/electrical/bus/ac-ess"),
|
screens = [screen.new(name: "DU1", type:"LCD", max_watts:60, dim_watts:50, dim_prop:"controls/lighting/DU/du1", elec_prop:"systems/electrical/bus/ac-ess"),
|
||||||
screen.new("DU2","LCD",60,50,"/controls/lighting/DU/du2","/systems/electrical/bus/ac-ess-shed"),
|
screen.new(name: "DU2", type:"LCD", max_watts:60, dim_watts:50, dim_prop:"controls/lighting/DU/du2", elec_prop:"systems/electrical/bus/ac-ess"),
|
||||||
screen.new("DU3","LCD",60,50,"/controls/lighting/DU/du3","/systems/electrical/bus/ac-ess"),
|
screen.new(name: "DU3", type:"LCD", max_watts:60, dim_watts:50, dim_prop:"controls/lighting/DU/du3", elec_prop:"systems/electrical/bus/ac-ess"),
|
||||||
screen.new("DU4","LCD",60,50,"/controls/lighting/DU/du4","/systems/electrical/bus/ac2"),
|
screen.new(name: "DU4", type:"LCD", max_watts:60, dim_watts:50, dim_prop:"controls/lighting/DU/du4", elec_prop:"systems/electrical/bus/ac-ess"),
|
||||||
screen.new("DU5","LCD",60,50,"/controls/lighting/DU/du5","/systems/electrical/bus/ac2"),
|
screen.new(name: "DU5", type:"LCD", max_watts:60, dim_watts:50, dim_prop:"controls/lighting/DU/du5", elec_prop:"systems/electrical/bus/ac-ess"),
|
||||||
screen.new("DU6","LCD",60,50,"/controls/lighting/DU/du6","/systems/electrical/bus/ac2")];
|
screen.new(name: "DU6", type:"LCD", max_watts:60, dim_watts:50, dim_prop:"controls/lighting/DU/du6", elec_prop:"systems/electrical/bus/ac-ess")];
|
||||||
|
|
||||||
},
|
},
|
||||||
loop: func() {
|
loop: func() {
|
||||||
|
|
|
@ -168,7 +168,7 @@ var triggerDoor = func(door, doorName, doorDesc) {
|
||||||
# Various Other Stuff #
|
# Various Other Stuff #
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
setlistener("/sim/signals/fdm-initialized", func {
|
var sl = setlistener("/sim/signals/fdm-initialized", func {
|
||||||
fbw.fctlInit();
|
fbw.fctlInit();
|
||||||
systems.ELEC.init();
|
systems.ELEC.init();
|
||||||
systems.PNEU.init();
|
systems.PNEU.init();
|
||||||
|
@ -191,6 +191,7 @@ setlistener("/sim/signals/fdm-initialized", func {
|
||||||
setprop("/it-autoflight/input/fd2", 1);
|
setprop("/it-autoflight/input/fd2", 1);
|
||||||
libraries.ECAMinit();
|
libraries.ECAMinit();
|
||||||
libraries.variousReset();
|
libraries.variousReset();
|
||||||
|
removelistener(sl);
|
||||||
});
|
});
|
||||||
|
|
||||||
var systemsLoop = maketimer(0.1, func {
|
var systemsLoop = maketimer(0.1, func {
|
||||||
|
|
Reference in a new issue