← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/DWM.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-05-07 13:11:31 +0200
committerEdvin <[email protected]>2025-05-07 13:11:31 +0200
commit0c1cbed626f914b9c5ce85e8d9b29ea0b15e027b (patch)
tree8eef211a6795fed654513bffd0bdf88c6f338498 /DWM.py
parentc814255af2afd29dff1ccca2f2fd07341da1cd21 (diff)
Added LIDAR detection for things in front of it. Also fixed DWM sending wrong unit data
Diffstat (limited to 'DWM.py')
-rwxr-xr-xDWM.py4
1 files changed, 2 insertions, 2 deletions
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))