Fix parse error (shift on float) reported by 'engink1981'.
This commit is contained in:
+2
-2
@@ -335,8 +335,8 @@ def parseBDS09_1(data):
|
|||||||
ew = bool(data["dew"])
|
ew = bool(data["dew"])
|
||||||
subtype = data["sub"]
|
subtype = data["sub"]
|
||||||
if subtype == 0x02:
|
if subtype == 0x02:
|
||||||
ns_vel <<= 2
|
ns_vel *= 4
|
||||||
ew_vel <<= 2
|
ew_vel *= 4
|
||||||
|
|
||||||
velocity = math.hypot(ns_vel, ew_vel)
|
velocity = math.hypot(ns_vel, ew_vel)
|
||||||
if ew:
|
if ew:
|
||||||
|
|||||||
Reference in New Issue
Block a user