← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-05-15 09:12:52 +0200
committerEdvin <[email protected]>2025-05-15 09:12:52 +0200
commit359580d25472eabebbad18bdbb1d77b70c23b227 (patch)
tree8d5463afad75f5790ef5bb24630fe4d907fc3236 /main.py
parent8e74843a4a82fa2a151a0061c1df008af305a75b (diff)
Halved LIDAR stop distance
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 2f99e89..0968f67 100755
--- a/main.py
+++ b/main.py
@@ -300,12 +300,12 @@ if bto.find("Connected") != -1:
a = int(a)
d = int(d)
- if (a < 25 or a > 335) and (d > 0 and d < 300):
+ if (a < 25 or a > 335) and (d > 0 and d < 150):
forward = False
if backward == False:
NANO.write(b"Stop\n")
- if ((a > 155 and a < 165) or (a > 195 and a < 205)) and (d > 0 and d < 300):
+ if ((a > 155 and a < 165) or (a > 195 and a < 205)) and (d > 0 and d < 150):
backward = False
if forward == False:
NANO.write(b"Stop\n")