diff options
| author | Edvin <[email protected]> | 2025-05-07 13:11:31 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-05-07 13:11:31 +0200 |
| commit | 0c1cbed626f914b9c5ce85e8d9b29ea0b15e027b (patch) | |
| tree | 8eef211a6795fed654513bffd0bdf88c6f338498 /DWM.py | |
| parent | c814255af2afd29dff1ccca2f2fd07341da1cd21 (diff) | |
Added LIDAR detection for things in front of it. Also fixed DWM sending wrong unit data
Diffstat (limited to 'DWM.py')
| -rwxr-xr-x | DWM.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |
