From d569e31a68faa2d2255dedcbc3d268c9f37af189 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Thu, 7 May 2015 20:47:09 -0700 Subject: [PATCH] Fix parse error (shift on float) reported by 'engink1981'. --- python/parse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/parse.py b/python/parse.py index 2fb5398..4fd5832 100644 --- a/python/parse.py +++ b/python/parse.py @@ -335,13 +335,13 @@ def parseBDS09_1(data): ew = bool(data["dew"]) subtype = data["sub"] if subtype == 0x02: - ns_vel <<= 2 - ew_vel <<= 2 + ns_vel *= 4 + ew_vel *= 4 velocity = math.hypot(ns_vel, ew_vel) if ew: ew_vel = 0 - ew_vel - + if ns_vel == 0: heading = 0 else: