... | ... |
@@ -57,55 +57,4 @@ var CDIfromSOURCE = func (source) { |
57 | 57 |
} |
58 | 58 |
} |
59 | 59 |
|
60 |
-var XPDR_change_cursor_position = func (dir) { |
|
61 |
- xpdr_digits = (xpdr_digits == 1)? 100 : 1; |
|
62 |
- xpdr_id_timer += 1; |
|
63 |
-} |
|
64 |
- |
|
65 |
-var XPDR_enter_digits = func (dir) { |
|
66 |
- var code = getprop('/instrumentation/transponder/id-code'); |
|
67 |
- var c = substr(sprintf('%04i', code), (xpdr_digits == 1)? 2 : 0, 2); |
|
68 |
- if (dir > 0) { |
|
69 |
- if (c[0] == `7`and c[1] == `7`) { |
|
70 |
- dir = -77; |
|
71 |
- } |
|
72 |
- elsif (c[1] == `7`) { |
|
73 |
- dir = 3; |
|
74 |
- } |
|
75 |
- } |
|
76 |
- else { |
|
77 |
- if (c[0] == `0` and c[1] == `0`) { |
|
78 |
- dir = 77; |
|
79 |
- } |
|
80 |
- elsif (c[1] == `0`) { |
|
81 |
- dir = -3; |
|
82 |
- } |
|
83 |
- } |
|
84 |
- setprop('/instrumentation/transponder/id-code', code + (dir * xpdr_digits)); |
|
85 |
- xpdr_id_timer += 1; |
|
86 |
-} |
|
87 |
- |
|
88 |
-var XPDR_activate_code = func (timer) { |
|
89 |
- if (timer) { |
|
90 |
- xpdr_id_timer -= 1; |
|
91 |
- return (xpdr_id_timer < 1); |
|
92 |
- } |
|
93 |
- return 1; |
|
94 |
-} |
|
95 |
- |
|
96 |
-var checkMarkerBaecon = func { |
|
97 |
- if (getprop('/instrumentation/marker-beacon/inner')) { |
|
98 |
- alerts.getNode('marker-beacon').setIntValue(1); |
|
99 |
- } |
|
100 |
- elsif (getprop('/instrumentation/marker-beacon/middle')) { |
|
101 |
- alerts.getNode('marker-beacon').setIntValue(2); |
|
102 |
- } |
|
103 |
- elsif (getprop('/instrumentation/marker-beacon/outer')) { |
|
104 |
- alerts.getNode('marker-beacon').setIntValue(3); |
|
105 |
- } |
|
106 |
- else { |
|
107 |
- alerts.getNode('marker-beacon').setIntValue(0); |
|
108 |
- } |
|
109 |
-} |
|
110 |
- |
|
111 | 60 |
foreach (var r; radios_list) props.globals.getNode(r ~ '-dec',1).setIntValue(0); |