1
0
Fork 0

Bug-fix: only set AP altitude for 'at' constraint.

This commit is contained in:
James Turner 2014-01-18 08:45:20 +00:00
parent cbcbaa7470
commit 0b6dbe9ad0

View file

@ -132,7 +132,7 @@ var FMSDelegate = {
var active = me.flightplan.currentWP();
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');
setprop('/autopilot/settings/target-altitude-ft', active.alt_cstr);
}