1
0
Fork 0

Put power up/down messages into context

This commit is contained in:
ThorstenB 2012-07-01 11:00:56 +02:00
parent 9856fdd452
commit 7d099bff28
3 changed files with 6 additions and 6 deletions

View file

@ -117,11 +117,11 @@ var apPower = func {
# print("v_test = ", v_test); # print("v_test = ", v_test);
if (valueTest > 0.5) { if (valueTest > 0.5) {
# autopilot just powered up # autopilot just powered up
print("power up"); print("CENTURY IIB power up");
apInit(); apInit();
} elsif (valueTest < -0.5) { } elsif (valueTest < -0.5) {
# autopilot just lost power # autopilot just lost power
print("power lost"); print("CENTURY IIB power lost");
apInit(); apInit();
# note: all button and knobs disabled in functions below # note: all button and knobs disabled in functions below
} }

View file

@ -170,11 +170,11 @@ var apPower = func {
# print("v_test = ", v_test); # print("v_test = ", v_test);
if (valueTest > 0.5) { if (valueTest > 0.5) {
# autopilot just powered up # autopilot just powered up
print("power up"); print("CENTURYIII power up");
apInit(); apInit();
} elsif (valueTest < -0.5) { } elsif (valueTest < -0.5) {
# autopilot just lost power # autopilot just lost power
print("power lost"); print("CENTURYIII power lost");
apInit(); apInit();
# note: all button and knobs disabled in functions below # note: all button and knobs disabled in functions below
} }

View file

@ -254,12 +254,12 @@ var apPower = func {
# print("v_test = ", v_test); # print("v_test = ", v_test);
if (valueTest > 0.5) { if (valueTest > 0.5) {
# autopilot just powered up # autopilot just powered up
print("power up"); print("KAP140 power up");
apInit(); apInit();
altAlert(); altAlert();
} elsif (valueTest < -0.5) { } elsif (valueTest < -0.5) {
# autopilot just lost power # autopilot just lost power
print("power lost"); print("KAP140 power lost");
apInit(); apInit();
annunciatorAltAlert.getNode("state").setBoolValue(0); annunciatorAltAlert.getNode("state").setBoolValue(0);
annunciatorBeep.getNode("state").setBoolValue(0); annunciatorBeep.getNode("state").setBoolValue(0);