✨
This commit is contained in:
1 parent
882692b789
commit
9c522cd566
1 file changed
+5
-1
+5
-1
@@ -17,7 +17,11 @@ def careful_forward(drive_time, arlo):
|
||||
arlo.go_diff(POWER, POWER + RIGHT_WHEEL_OFFSET, 1, 1)
|
||||
else:
|
||||
print("blocked")
|
||||
arlo.stop()
|
||||
if right_dist > 300:
|
||||
arlo.go_diff(POWER, POWER, 1, 0)
|
||||
else:
|
||||
arlo.go_diff(POWER, POWER + RIGHT_WHEEL_OFFSET, 0, 1)
|
||||
|
||||
time.sleep(0.1)
|
||||
|
||||
def main():
|
||||
|
||||
Reference in new issue
Block a user