This commit is contained in:
NikolajDanger
2022-11-02 15:05:02 +01:00
parent 073897c485
commit f7d459482a

View File

@ -117,7 +117,7 @@ def main():
position = cv2.aruco.estimatePoseSingleMarkers(
np.array([arucos[landmark]]), 14.5, CAMERA_MATRIX, DIST_COEF
)[1][0][0]
drive_distance = np.sqrt(position[0]**2 + position[2]**2) - 30
drive_distance = np.sqrt(position[0]**2 + position[2]**2) - 25
noah.go_diff(POWER, POWER, 1, 1)
print("Final bit")
time.sleep((drive_distance * DRIVE_T)/1000)