From 8a43d711aaa3d4e0b9a0bb29d0d69b3d73fc58b2 Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Tue, 4 Dec 2018 18:17:05 +0100 Subject: [PATCH] add track rate from bds50 to streamer --- pyModeS/streamer/stream.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyModeS/streamer/stream.py b/pyModeS/streamer/stream.py index de996f6..c10dd15 100644 --- a/pyModeS/streamer/stream.py +++ b/pyModeS/streamer/stream.py @@ -46,6 +46,7 @@ class Stream(): 'roc': None, 'tas': None, 'roll': None, + 'rtrk': None, 'ias': None, 'mach': None, 'hdg': None, @@ -167,12 +168,15 @@ class Stream(): if bds == 'BDS50': tas = pms.commb.tas50(msg) roll = pms.commb.roll50(msg) + rtrk = pms.commb.rtrk50(msg) self.acs[icao]['t50'] = t if tas: self.acs[icao]['tas'] = tas if roll: self.acs[icao]['roll'] = roll + if rtrk: + self.acs[icao]['rtrk'] = rtrk elif bds == 'BDS60': ias = pms.commb.ias60(msg)