FBW in DIRECT law when power is lost

This commit is contained in:
Joshua Davidson 2017-04-07 14:24:11 -04:00
parent fcae4d1cba
commit ec202225a1

View file

@ -183,8 +183,16 @@ setlistener("/it-fbw/law", func {
}); });
setlistener("/sim/signals/fdm-initialized", func { setlistener("/sim/signals/fdm-initialized", func {
setprop("/it-fbw/law", "NORMAL"); setprop("/it-fbw/law", "DIRECT");
roll_input(); roll_input();
pitch_input(); pitch_input();
print("AIRBUS FBW ... OK!"); print("AIRBUS FBW ... OK!");
}); });
setlistener("/systems/electrical/bus/ac-ess", func {
if (getprop("/systems/electrical/bus/ac-ess") >= 110) {
setprop("/it-fbw/law", "NORMAL");
} else {
setprop("/it-fbw/law", "DIRECT");
}
});