Showing 2 changed files with 34 additions and 1 deletions
+33
Nasal/display.nas
... ...
@@ -117,6 +117,7 @@ var displayClass = {
117 117
                 append(groups.hide,
118 118
                     'EIS',
119 119
                     'CDI',
120
+                    'OMI', 'MarkerBG', 'MarkerText',
120 121
                     'NAV1-pointer', 'NAV1-CDI', 'NAV1-FROM', 'NAV1-TO',
121 122
                     'NAV2-pointer', 'NAV2-CDI', 'NAV2-FROM', 'NAV2-TO',
122 123
                     'GPS-pointer', 'GPS-CDI', 'GPS-CTI', 'GPS-CTI-diamond', 'GPS-FROM', 'GPS-TO',
... ...
@@ -202,6 +203,7 @@ var displayClass = {
202 203
                 me.updateBRG();
203 204
                 me.updateXPDR();
204 205
                 me.updateBARO();
206
+                me.updateOMI();
205 207
                 me.timerTrigger();
206 208
             }
207 209
             else {
... ...
@@ -1182,6 +1184,37 @@ var displayClass = {
1182 1184
     },
1183 1185
     _eis_count : 0,
1184 1186
 #}}}
1187
+
1188
+    updateOMI : func {
1189
+# display marker baecon Outer, Middle, Inner {{{
1190
+        var marker = nil;
1191
+        foreach (var m; ['outer', 'middle', 'inner'])
1192
+            if (getprop('/instrumentation/marker-beacon/' ~ m)) {
1193
+                print(m);
1194
+                marker = m;
1195
+                me.screenElements['OMI']
1196
+                    .show();
1197
+                break;
1198
+            }
1199
+        if (marker != nil) {
1200
+            me.screenElements['MarkerText']
1201
+                .setText(me._omi_data[marker].t)
1202
+                .show();
1203
+            me.screenElements['MarkerBG']
1204
+                .setColorFill(me._omi_data[marker].bg)
1205
+                .show();
1206
+        }
1207
+        else
1208
+            me.screenElements['OMI']
1209
+                .hide();
1210
+        settimer(func me.updateOMI(), 1);
1211
+    },
1212
+    _omi_data : {
1213
+        'outer':  {t: 'O', bg: [0,1,1]},
1214
+        'middle': {t: 'M', bg: [1,1,1]},
1215
+        'inner':  {t: 'I', bg: [1,1,0]},
1216
+    },
1217
+#}}}
1185 1218
 };
1186 1219
 
1187 1220
 var keyMap = {
+1 -1
README.md
... ...
@@ -68,6 +68,7 @@ Please report bug at <seb.marque@free.fr>.
68 68
     * softkeys colorized when active
69 69
     * alerts with white backgroud and black text available
70 70
   * CDI
71
+  * OMI
71 72
 * ![][90%]
72 73
   * Radio stack, including ID for NAV (bug: NAV1 ID isn't displayed ![][paused])
73 74
   * Bearing needs some checks to be sure it shows the correct information
... ...
@@ -97,7 +98,6 @@ Please report bug at <seb.marque@free.fr>.
97 98
   * PFD settings
98 99
   * texture for some MFD buttons
99 100
   * rotation and zooming of online maps in-flight ![][pending]
100
-  * OMI
101 101
   * VS guidance
102 102
   * VNAV
103 103
   * tutorials