This commit is contained in:
NikolajDanger
2022-09-14 15:01:12 +02:00
parent a71ae87295
commit 628b02e2ee

View File

@ -17,7 +17,10 @@ def careful_forward(drive_time, arlo):
arlo.go_diff(POWER, POWER + RIGHT_WHEEL_OFFSET, 1, 1)
else:
print("blocked")
arlo.go_diff(POWER, POWER + RIGHT_WHEEL_OFFSET, 0, 1)
if forward_dist > 600 and right_dist > 200:
arlo.go_diff(POWER, POWER, 1, 0)
else:
arlo.go_diff(POWER, POWER + RIGHT_WHEEL_OFFSET, 0, 1)
time.sleep(0.01)