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

Implement direction() -> (0-360) function. #15

Open
yohell opened this issue Jan 25, 2017 · 0 comments
Open

Implement direction() -> (0-360) function. #15

yohell opened this issue Jan 25, 2017 · 0 comments
Assignees

Comments

@yohell
Copy link
Contributor

yohell commented Jan 25, 2017

Calibrate compass:

  • Goal: make function direction() that returns the direction of the robot relative to the arena:
    ** Unit: degrees (0-360)
    ** counterclockwise (like in maths).
    ** 0 is parallel with X axis direction along long wall toward windows .
    ** 90 is parallel with Y axis direction along short wall toward main big room
  • Method:
    ** Spin, plot compass values.
    ** Enter mean range (minmax) values into code.
    ** Find directions of the walls:
    *** Tell robot to drive straight in compass direction X. Adjust X until parallel to long wall.
    *** Make sure Y is right angles to X.
    *** Enter direction of walls into code.
@yohell yohell self-assigned this Jan 25, 2017
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