@@ -73,8 +73,15 @@ def process_raw(self, adsb_ts, adsb_msg, commb_ts, commb_msg, tnow=None):
73
73
"VFOMr" : None ,
74
74
"PE_RCu" : None ,
75
75
"PE_VPL" : None ,
76
+ "hum44" : None ,
77
+ "p44" : None ,
78
+ "temp44" : None ,
79
+ "turb44" : None ,
80
+ "wind44" : None ,
76
81
}
77
82
83
+ self .acs [icao ]["tc" ] = tc
84
+ self .acs [icao ]["icao" ] = icao
78
85
self .acs [icao ]["t" ] = t
79
86
self .acs [icao ]["live" ] = int (t )
80
87
@@ -155,7 +162,7 @@ def process_raw(self, adsb_ts, adsb_msg, commb_ts, commb_msg, tnow=None):
155
162
ac ["nic_bc" ] = pms .adsb .nic_b (msg )
156
163
157
164
if (5 <= tc <= 8 ) or (9 <= tc <= 18 ) or (20 <= tc <= 22 ):
158
- ac ["HPL" ], ac ["RCu" ], ac ["RCv" ] = pms .adsb .nuc_p (msg )
165
+ ac ["NUCp" ], ac [ " HPL" ], ac ["RCu" ], ac ["RCv" ] = pms .adsb .nuc_p (msg )
159
166
160
167
if (ac ["ver" ] == 1 ) and ("nic_s" in ac .keys ()):
161
168
ac ["Rc" ], ac ["VPL" ] = pms .adsb .nic_v1 (msg , ac ["nic_s" ])
@@ -164,20 +171,20 @@ def process_raw(self, adsb_ts, adsb_msg, commb_ts, commb_msg, tnow=None):
164
171
and ("nic_a" in ac .keys ())
165
172
and ("nic_bc" in ac .keys ())
166
173
):
167
- ac ["Rc" ] = pms .adsb .nic_v2 (msg , ac ["nic_a" ], ac ["nic_bc" ])
174
+ ac ["NIC" ], ac [ " Rc" ] = pms .adsb .nic_v2 (msg , ac ["nic_a" ], ac ["nic_bc" ])
168
175
169
176
if tc == 19 :
170
- ac ["HVE" ], ac ["VVE" ] = pms .adsb .nuc_v (msg )
177
+ ac ["NUCv" ], ac [ " HVE" ], ac ["VVE" ] = pms .adsb .nuc_v (msg )
171
178
if ac ["ver" ] in [1 , 2 ]:
172
- ac ["HFOMr" ], ac ["VFOMr" ] = pms .adsb .nac_v (msg )
179
+ ac ["NACv" ], ac [ " HFOMr" ], ac ["VFOMr" ] = pms .adsb .nac_v (msg )
173
180
174
181
if tc == 29 :
175
182
ac ["PE_RCu" ], ac ["PE_VPL" ], ac ["base" ] = pms .adsb .sil (msg , ac ["ver" ])
176
- ac ["EPU " ], ac ["VEPU" ] = pms .adsb .nac_p (msg )
183
+ ac ["NACp" ], ac [ "HEPU " ], ac ["VEPU" ] = pms .adsb .nac_p (msg )
177
184
178
185
if tc == 31 :
179
186
ac ["ver" ] = pms .adsb .version (msg )
180
- ac ["EPU " ], ac ["VEPU" ] = pms .adsb .nac_p (msg )
187
+ ac ["NACp" ], ac [ "HEPU " ], ac ["VEPU" ] = pms .adsb .nac_p (msg )
181
188
ac ["PE_RCu" ], ac ["PE_VPL" ], ac ["sil_base" ] = pms .adsb .sil (
182
189
msg , ac ["ver" ]
183
190
)
@@ -194,6 +201,8 @@ def process_raw(self, adsb_ts, adsb_msg, commb_ts, commb_msg, tnow=None):
194
201
if icao not in self .acs :
195
202
continue
196
203
204
+ self .acs [icao ]["icao" ] = icao
205
+ self .acs [icao ]["t" ] = t
197
206
self .acs [icao ]["live" ] = int (t )
198
207
199
208
bds = pms .bds .infer (msg )
@@ -217,8 +226,10 @@ def process_raw(self, adsb_ts, adsb_msg, commb_ts, commb_msg, tnow=None):
217
226
output_buffer .append ([t , icao , "rtrk50" , rtrk50 ])
218
227
219
228
if trk50 :
229
+ self .acs [icao ]["trk50" ] = trk50
220
230
output_buffer .append ([t , icao , "trk50" , trk50 ])
221
231
if gs50 :
232
+ self .acs [icao ]["gs50" ] = gs50
222
233
output_buffer .append ([t , icao , "gs50" , gs50 ])
223
234
224
235
elif bds == "BDS60" :
@@ -241,10 +252,20 @@ def process_raw(self, adsb_ts, adsb_msg, commb_ts, commb_msg, tnow=None):
241
252
output_buffer .append ([t , icao , "mach60" , mach60 ])
242
253
243
254
if roc60baro :
255
+ self .acs [icao ]["roc60baro" ] = roc60baro
244
256
output_buffer .append ([t , icao , "roc60baro" , roc60baro ])
245
257
if roc60ins :
258
+ self .acs [icao ]["roc60ins" ] = roc60ins
246
259
output_buffer .append ([t , icao , "roc60ins" , roc60ins ])
247
260
261
+ elif bds == "BDS44" :
262
+ if (pms .commb .is44 (msg )):
263
+ self .acs [icao ]["hum44" ] = pms .commb .hum44 (msg )
264
+ self .acs [icao ]["p44" ] = pms .commb .p44 (msg )
265
+ self .acs [icao ]["temp44" ] = pms .commb .temp44 (msg )
266
+ self .acs [icao ]["turb44" ] = pms .commb .turb44 (msg )
267
+ self .acs [icao ]["wind44" ] = pms .commb .wind44 (msg )
268
+
248
269
# clear up old data
249
270
for icao in list (self .acs .keys ()):
250
271
if self .t - self .acs [icao ]["live" ] > self .cache_timeout :
0 commit comments