✨
This commit is contained in:
4
rally.py
4
rally.py
@ -99,8 +99,8 @@ 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])) - 10
|
angle = np.rad2deg(np.arctan(position[0]/position[2])) - 5
|
||||||
drive_distance = np.sqrt(position[0]**2 + position[2]**2) - 120
|
drive_distance = np.sqrt(position[0]**2 + position[2]**2) - 100
|
||||||
|
|
||||||
if angle < 0:
|
if angle < 0:
|
||||||
noah.go_diff(POWER, POWER, 0, 1)
|
noah.go_diff(POWER, POWER, 0, 1)
|
||||||
|
Reference in New Issue
Block a user