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

Update focus() to work on GPS coordinates #23

Open
aaron4522 opened this issue Sep 11, 2023 · 0 comments
Open

Update focus() to work on GPS coordinates #23

aaron4522 opened this issue Sep 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@aaron4522
Copy link
Collaborator

In camera.py, focus() works by moving the camera until a detection is in the center of the frame. Because the boat is constantly moving, there is a decent chance that detection will not be in frame, especially if there is a significant time difference between capture() and focus() being called.

  • Support focusing based on GPS
    • Take into account the boat's heading and distance to the desired GPS marker and move the servos to focus on that point
    • Boat may keel over which can mess with servo yaw/pitch not being aligned to the horizon. Correcting for this would be great but difficult.
    • If its impossible for the camera servos to focus on the GPS point alone (ie. the point is behind the boat and it would have to turn the rudder to see it) then raise an exception

Achieving this will give us more precision for search/precision nav.

@aaron4522 aaron4522 added the enhancement New feature or request label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant