Fix altitude constrain handling.
Thanks to Curt for spotting the issue.
This commit is contained in:
parent
7bf96db691
commit
43a8b16dab
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ var FMSDelegate = {
|
|||
var active = me.flightplan.currentWP();
|
||||
if (active == nil) return;
|
||||
|
||||
if (active.alt_cstr_type != 'none') {
|
||||
if (active.alt_cstr_type != nil) {
|
||||
debug.dump('new WP has valid altitude restriction, setting on AP');
|
||||
setprop('/autopilot/settings/target-altitude-ft', active.alt_cstr);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue