add BDS50 roll to streamer

This commit is contained in:
Junzi Sun 2018-11-30 16:51:27 +01:00
parent 9e1cc2c5a2
commit 61f2191feb

View File

@ -45,6 +45,7 @@ class Stream():
'trk': None,
'roc': None,
'tas': None,
'roll': None,
'ias': None,
'mach': None,
'hdg': None,
@ -64,6 +65,7 @@ class Stream():
'PE_VPL' : None,
}
self.acs[icao]['t'] = t
self.acs[icao]['live'] = int(t)
if 1 <= tc <= 4:
@ -164,10 +166,13 @@ class Stream():
if bds == 'BDS50':
tas = pms.commb.tas50(msg)
roll = pms.commb.roll50(msg)
self.acs[icao]['t50'] = t
if tas:
self.acs[icao]['t50'] = t
self.acs[icao]['tas'] = tas
if roll:
self.acs[icao]['roll'] = roll
elif bds == 'BDS60':
ias = pms.commb.ias60(msg)
@ -212,7 +217,8 @@ class Stream():
"""update aircraft from last iteration"""
newacs = dict()
for ac in self.__new_acs:
newacs[ac] = self.acs[ac]
if ac in self.acs:
newacs[ac] = self.acs[ac]
return newacs
def reset_new_aircraft(self):