Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Drive.FindAngleToSpeaker has limited range of return values #56

Closed
dlpond917 opened this issue Feb 10, 2024 · 0 comments · Fixed by #57
Closed

Bug: Drive.FindAngleToSpeaker has limited range of return values #56

dlpond917 opened this issue Feb 10, 2024 · 0 comments · Fixed by #57

Comments

@dlpond917
Copy link
Collaborator

Two problems:

  1. Amber and I changed this to use atan2 instead of atan. atan2 is not the right function to use when calculating angles of a right triangle; switch back to atan.

  2. The function needs to take the robot heading into account. If the robot is facing left instead of right, the calculated heading will swing it around to the right again.

@nmp2965 nmp2965 linked a pull request Feb 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant