✨
This commit is contained in:
2
rally.py
2
rally.py
@ -122,7 +122,7 @@ def main():
|
|||||||
np.array([arucos[landmark]]), 14.5, CAMERA_MATRIX, DIST_COEF
|
np.array([arucos[landmark]]), 14.5, CAMERA_MATRIX, DIST_COEF
|
||||||
)[1][0][0]
|
)[1][0][0]
|
||||||
|
|
||||||
angle = np.rad2deg(np.arctan(position[0]/position[2])) - 7
|
angle = np.rad2deg(np.arctan(position[0]/position[2])) - 5
|
||||||
drive_distance = np.sqrt(position[0]**2 + position[2]**2) - 100
|
drive_distance = np.sqrt(position[0]**2 + position[2]**2) - 100
|
||||||
|
|
||||||
if angle < 0:
|
if angle < 0:
|
||||||
|
Reference in New Issue
Block a user