Rename folders as per suggestion from Rajat

This commit is contained in:
Danny Staple
2023-01-18 13:57:13 +00:00
parent a7e7d55d62
commit 7907a3fecf
78 changed files with 1389 additions and 0 deletions
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
import time
import robot
robot.set_left(0.8)
robot.set_right(0.8)
target = 4000
while robot.left_encoder.read() < target or robot.right_encoder.read() < target:
if robot.left_encoder.read() >= target:
robot.set_left(0)
if robot.right_encoder.read() >= target:
robot.set_right(0)
print(robot.left_encoder.read(), robot.right_encoder.read())