... | ... |
@@ -178,7 +178,8 @@ var deviceClass = { |
178 | 178 |
data.timers.tcas = maketimer ( 5, func { |
179 | 179 |
var traffic_displayed = 0; |
180 | 180 |
foreach (var name; keys(flightdeck)) |
181 |
- traffic_displayed += flightdeck[name].map.layers.tcas.group.getVisible(); |
|
181 |
+ if (contains(flightdeck[name].map.layers, 'tcas')) |
|
182 |
+ traffic_displayed += flightdeck[name].map.layers.tcas.group.getVisible(); |
|
182 | 183 |
var tcas_dirty = []; |
183 | 184 |
var level_dirty = 0; |
184 | 185 |
foreach (var AItype; [ 'aircraft', 'multiplayer' ]) |
... | ... |
@@ -37,7 +37,8 @@ var mapClass = { |
37 | 37 |
m.layers.tiles = MapTiles.new(m.device, m.group); |
38 | 38 |
m.layers.route = MapRoute.new(m.device, m.group); |
39 | 39 |
m.layers.navaids = MapNavaids.new(m.device, m.group); |
40 |
- m.layers.tcas = MapTcas.new(m.device, m.group); |
|
40 |
+ if (m.device.role == 'MFD') |
|
41 |
+ m.layers.tcas = MapTcas.new(m.device, m.group); |
|
41 | 42 |
|
42 | 43 |
m.mapOrientation = m.device.display.display.createGroup('MapOrientation') |
43 | 44 |
.setVisible(m.visibility); |
... | ... |
@@ -61,9 +61,6 @@ var softkeysClass = { |
61 | 61 |
me.device.map.setVisible(0); |
62 | 62 |
me.device.display.screenElements['PFD-Map-bg'].hide(); |
63 | 63 |
}, |
64 |
- TRAFFIC: func { |
|
65 |
- call(me.bindings.PFD.INSET.declutter, ['INSETTRAFFIC', 'tcas', 2], me); |
|
66 |
- }, |
|
67 | 64 |
ROUTE: func { |
68 | 65 |
call(me.bindings.PFD.INSET.declutter, ['INSETROUTE', 'route', 3], me); |
69 | 66 |
}, |
... | ... |
@@ -1161,7 +1158,7 @@ var keyMap = { |
1161 | 1158 |
first : 1, |
1162 | 1159 |
texts : ['INSET', 'SENSOR', 'PFD', 'OBS', 'CDI', 'DME', 'XPDR', 'IDENT', 'TMR/REF', 'NRST' ], |
1163 | 1160 |
INSET : { |
1164 |
- texts : ['OFF', '', 'TRAFFIC', 'ROUTE', 'TOPO', 'TERRAIN', 'NAVAIDS', 'METAR'], |
|
1161 |
+ texts : ['OFF', '', '', 'ROUTE', '', 'TERRAIN', 'NAVAIDS', 'METAR'], |
|
1165 | 1162 |
NAVAIDS : { |
1166 | 1163 |
first : 2, |
1167 | 1164 |
texts : ['VOR', 'TACAN', 'NDB', 'DME', 'APT', '', 'ALL'], |