Bug-fix: only set AP altitude for 'at' constraint.
This commit is contained in:
parent
cbcbaa7470
commit
0b6dbe9ad0
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ var FMSDelegate = {
|
||||||
var active = me.flightplan.currentWP();
|
var active = me.flightplan.currentWP();
|
||||||
if (active == nil) return;
|
if (active == nil) return;
|
||||||
|
|
||||||
if (active.alt_cstr_type != nil) {
|
if (active.alt_cstr_type == "at") {
|
||||||
debug.dump('new WP has valid altitude restriction, setting on AP');
|
debug.dump('new WP has valid altitude restriction, setting on AP');
|
||||||
setprop('/autopilot/settings/target-altitude-ft', active.alt_cstr);
|
setprop('/autopilot/settings/target-altitude-ft', active.alt_cstr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue