Fix parse error (shift on float) reported by 'engink1981'.
This commit is contained in:
parent
f0323160a0
commit
d569e31a68
@ -335,8 +335,8 @@ 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:
|
||||
|
Loading…
Reference in New Issue
Block a user