Put power up/down messages into context
This commit is contained in:
parent
9856fdd452
commit
7d099bff28
3 changed files with 6 additions and 6 deletions
|
@ -117,11 +117,11 @@ var apPower = func {
|
|||
# print("v_test = ", v_test);
|
||||
if (valueTest > 0.5) {
|
||||
# autopilot just powered up
|
||||
print("power up");
|
||||
print("CENTURY IIB power up");
|
||||
apInit();
|
||||
} elsif (valueTest < -0.5) {
|
||||
# autopilot just lost power
|
||||
print("power lost");
|
||||
print("CENTURY IIB power lost");
|
||||
apInit();
|
||||
# note: all button and knobs disabled in functions below
|
||||
}
|
||||
|
|
|
@ -170,11 +170,11 @@ var apPower = func {
|
|||
# print("v_test = ", v_test);
|
||||
if (valueTest > 0.5) {
|
||||
# autopilot just powered up
|
||||
print("power up");
|
||||
print("CENTURYIII power up");
|
||||
apInit();
|
||||
} elsif (valueTest < -0.5) {
|
||||
# autopilot just lost power
|
||||
print("power lost");
|
||||
print("CENTURYIII power lost");
|
||||
apInit();
|
||||
# note: all button and knobs disabled in functions below
|
||||
}
|
||||
|
|
|
@ -254,12 +254,12 @@ var apPower = func {
|
|||
# print("v_test = ", v_test);
|
||||
if (valueTest > 0.5) {
|
||||
# autopilot just powered up
|
||||
print("power up");
|
||||
print("KAP140 power up");
|
||||
apInit();
|
||||
altAlert();
|
||||
} elsif (valueTest < -0.5) {
|
||||
# autopilot just lost power
|
||||
print("power lost");
|
||||
print("KAP140 power lost");
|
||||
apInit();
|
||||
annunciatorAltAlert.getNode("state").setBoolValue(0);
|
||||
annunciatorBeep.getNode("state").setBoolValue(0);
|
||||
|
|
Loading…
Reference in a new issue