KAP-140:
The ALT-ARM knob should only be arming the altitude interception when the AP is activated. When rotating the AP alt-selector knob with disabled AP, just the altitude alarm beep is configured. From Benedikt Hallinger Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2489/
This commit is contained in:
parent
60b144cf71
commit
b42759704f
1 changed files with 6 additions and 0 deletions
|
@ -1327,6 +1327,12 @@ var armButton = func {
|
|||
#print("arm button");
|
||||
# Disable button if too little power
|
||||
if (getprop(power) < minVoltageLimit) { return; }
|
||||
|
||||
# Do nothing if the AP is not turned on
|
||||
if (lockPitchMode.getValue() == pitchModes["OFF"]) {
|
||||
lockPitchMode.setIntValue(pitchArmModes["OFF"]);
|
||||
return;
|
||||
}
|
||||
|
||||
var pitchArm = lockPitchArm.getValue();
|
||||
|
||||
|
|
Loading…
Reference in a new issue