More Nasal improvements (remove getprop more etc)
This commit is contained in:
parent
f86c4901c6
commit
d38496f196
4 changed files with 151 additions and 151 deletions
File diff suppressed because it is too large
Load diff
|
@ -523,7 +523,7 @@ var athrOff = func(type) {
|
|||
var hdgInput = func {
|
||||
if (latMode.getValue() != 0) {
|
||||
showHDG.setBoolValue(1);
|
||||
var hdgnow = getprop("/it-autoflight/input/hdg");
|
||||
setprop("/modes/fcu/hdg-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
var hdgnow = fmgc.Input.hdg.getValue();
|
||||
fmgc.Custom.hdgTime.setValue(pts.Sim.Time.elapsedSec.getValue());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1027,12 +1027,12 @@ setlistener("/sim/signals/fdm-initialized", func {
|
|||
|
||||
# For Canvas Nav Display.
|
||||
setlistener("/it-autoflight/input/hdg", func {
|
||||
setprop("autopilot/settings/heading-bug-deg", getprop("it-autoflight/input/hdg"));
|
||||
});
|
||||
setprop("/autopilot/settings/heading-bug-deg", Input.hdg.getValue());
|
||||
}, 0, 0);
|
||||
|
||||
setlistener("/it-autoflight/internal/alt", func {
|
||||
setprop("autopilot/settings/target-altitude-ft", getprop("it-autoflight/internal/alt"));
|
||||
});
|
||||
setprop("/autopilot/settings/target-altitude-ft", Internal.alt.getValue());
|
||||
}, 0, 0);
|
||||
|
||||
var loopTimer = maketimer(0.1, ITAF, ITAF.loop);
|
||||
var slowLoopTimer = maketimer(1, ITAF, ITAF.slowLoop);
|
||||
|
|
|
@ -1171,7 +1171,7 @@ setlistener("/gear/gear[1]/wow", func() {
|
|||
setprop("/FMGC/internal/landing-time", -99);
|
||||
}
|
||||
|
||||
if (getprop("/gear/gear[1]/wow") == 1 and getprop("/FMGC/internal/landing-time") == -99) {
|
||||
if (pts.Gear.wow[1].getValue() and getprop("/FMGC/internal/landing-time") == -99) {
|
||||
timer30secLanding.start();
|
||||
setprop("/FMGC/internal/landing-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue