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);
|
# 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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue