← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-05-07 15:29:53 +0200
committerEdvin <[email protected]>2025-05-07 15:29:53 +0200
commit8c4b1af34280bc4844ba864fd508f198a3979397 (patch)
tree071194c06b91f2f55ed42a054470cd845548c97b
parent51fddf98a043bb9b32518f19030da2127bf914fe (diff)
Added stop
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index 722518e..cd52dfd 100755
--- a/main.py
+++ b/main.py
@@ -211,7 +211,7 @@ if bto.find("Connected") != -1:
if backward == False:
NANO.write(b"Stop\n")
- if (a > 155 and a < 170) or (a > 190 and a < 205):
+ if ((a > 155 and a < 170) or (a > 190 and a < 205)) and d < 300:
print("Something behind!")
backward = False
if forward == False: