From fc9b05b6f1ac5a6a1e7dbdf0fa8a3187a7d33a7c Mon Sep 17 00:00:00 2001 From: Alexander Hirsch Date: Fri, 17 May 2019 06:06:06 -0700 Subject: [PATCH] Added direction source to ground_velocity() --- pyModeS/decoder/bds/bds06.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyModeS/decoder/bds/bds06.py b/pyModeS/decoder/bds/bds06.py index 03ce272..8b9df07 100644 --- a/pyModeS/decoder/bds/bds06.py +++ b/pyModeS/decoder/bds/bds06.py @@ -147,7 +147,7 @@ def surface_velocity(msg): msg (string): 28 bytes hexadecimal message string Returns: - (int, float, None, string, None, None): speed (kt), + (int, float, None, string, string, None): speed (kt), ground track (degree), None for rate of climb/descend (ft/min), and speed type ('GS' for ground speed), direction source ('gnd_trk' for ground track), None rate of climb/descent source. @@ -183,4 +183,4 @@ def surface_velocity(msg): spd = kts[i-1] + (mov-movs[i-1]) * step spd = round(spd, 2) - return spd, trk, None, 'GS', None, None + return spd, trk, None, 'GS', 'gnd_trk', None