This commit is contained in:
NikolajDanger
2022-09-28 14:11:33 +02:00
parent 7fb14f9345
commit 2490d93a3c

View File

@ -77,7 +77,7 @@ def main():
print(position)
angle = np.rad2deg(np.arctan(position[1]/position[0]))
drive_distance = np.sqrt(position[0]**2 + position[1]**2) + 22.5
drive_distance = np.sqrt(position[0]**2 + position[1]**2)
if angle < 0:
arlo.go_diff(POWER, POWER, 0, 1)
sleep((abs(angle) * TURN_T)/1000)