Ch-6 clean

This commit is contained in:
Danny Staple
2022-03-20 22:27:49 +00:00
parent 481cac28de
commit 36240090bf
19 changed files with 71 additions and 92 deletions
+7 -7
View File
@@ -12,13 +12,13 @@ last_y = 0
print("Entering main loop")
while True:
x = robot.left_encoder.read()
y = robot.right_encoder.read()
x = robot.left_encoder.read()
y = robot.right_encoder.read()
x_diff = x - last_x
y_diff = y - last_y
x_diff = x - last_x
y_diff = y - last_y
last_x = x
last_y = y
last_x = x
last_y = y
mouse.move(x=x_diff, y=y_diff)
mouse.move(x=x_diff, y=y_diff)