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

Choose recovery turn direction based on assumed GPS drift #42

Open
merose opened this issue Apr 24, 2018 · 0 comments
Open

Choose recovery turn direction based on assumed GPS drift #42

merose opened this issue Apr 24, 2018 · 0 comments
Assignees

Comments

@merose
Copy link
Contributor

merose commented Apr 24, 2018

Current recovery strategy is to turn in a circle to the right. But the direction of GPS adjustment at the start may be a better indication of which direction to turn. For example, if the drift is to the east, then the robot should turn whichever direction is closer to east.

Probably save the GPS drift offset at the start. When the cone is lost, add the offset t to the current rover position and take the angle from the rover to that new point as an angle from -pi to +pi. If negative, turn to the right, else turn to the left.

@merose merose self-assigned this Apr 24, 2018
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

No branches or pull requests

1 participant