✨
This commit is contained in:
1 parent
a025ed0098
commit
2009e1c972
1 file changed
+2
-1
@@ -76,7 +76,8 @@ def main():
|
|||||||
]
|
]
|
||||||
print(position)
|
print(position)
|
||||||
|
|
||||||
angle = np.rad2deg(np.arctan(position[0]/position[1]))
|
angle = np.rad2deg(np.arctan(position[1]/position[0]))
|
||||||
|
print(angle)
|
||||||
drive_distance = np.sqrt(position[0]**2 + position[1]**2)
|
drive_distance = np.sqrt(position[0]**2 + position[1]**2)
|
||||||
if angle < 0:
|
if angle < 0:
|
||||||
arlo.go_diff(POWER, POWER, 0, 1)
|
arlo.go_diff(POWER, POWER, 0, 1)
|
||||||
|
|||||||
Reference in new issue
Block a user