Fix FCU - altitude input should be between FL001 and FL490
This commit is contained in:
parent
1cca50498c
commit
33a4d70046
1 changed files with 4 additions and 4 deletions
|
@ -381,10 +381,10 @@ var FCUController = {
|
|||
} else if (d == -10) {
|
||||
altTemp = altTemp - 1000;
|
||||
}
|
||||
if (altTemp < 0) {
|
||||
altSet.setValue(0);
|
||||
} else if (altTemp > 50000) {
|
||||
altSet.setValue(50000);
|
||||
if (altTemp < 100) {
|
||||
altSet.setValue(100);
|
||||
} else if (altTemp > 49000) {
|
||||
altSet.setValue(49000);
|
||||
} else {
|
||||
altSet.setValue(altTemp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue