✨
This commit is contained in:
3
rally.py
3
rally.py
@ -117,9 +117,10 @@ 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
|
||||
noah.go_diff(POWER, POWER, 1, 1)
|
||||
print("Final bit")
|
||||
time.sleep((70 * DRIVE_T)/1000)
|
||||
time.sleep((drive_distance * DRIVE_T)/1000)
|
||||
noah.stop()
|
||||
|
||||
break
|
||||
|
Reference in New Issue
Block a user