From 0c1cbed626f914b9c5ce85e8d9b29ea0b15e027b Mon Sep 17 00:00:00 2001 From: Edvin Date: Wed, 7 May 2025 13:11:31 +0200 Subject: Added LIDAR detection for things in front of it. Also fixed DWM sending wrong unit data --- DWM.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DWM.py') diff --git a/DWM.py b/DWM.py index 0582c5a..39c599b 100755 --- a/DWM.py +++ b/DWM.py @@ -98,8 +98,8 @@ with serial.Serial('/dev/ttyACM0', 115200, timeout = 1) as s: kf.predict() kf.update(np.array([x, y])) - kfx = int(kf.x[0] * 1000) - kfy = int(kf.x[1] * 1000) + kfx = int(kf.x[0]) + kfy = int(kf.x[1]) position.popleft() position.append((x, y)) -- cgit v1.2.3