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

Use ultrasonic sensor to choose autonomous path #9

Open
dltompki opened this issue Jan 24, 2021 · 1 comment
Open

Use ultrasonic sensor to choose autonomous path #9

dltompki opened this issue Jan 24, 2021 · 1 comment
Assignees
Labels
feature New functionality requirement We need this feature to complete the challenge at the most basic level

Comments

@dltompki
Copy link
Contributor

Proposed Functionality

Attach an ultrasonic sensor on the side of the robot to detect how far it is from the sidewall of the field. Based on this distance (aka the position of the robot), the robot should know if it is lined up for the red or blue path for either the A or B path in the galactic search challenge. This is a total of 4 physical robot positions, to comply with GSC2-1 (see chart below).

~ Path A Path B
Red A-Red B-Red
Blue A-Blue B-Blue

Suggested Implementation

At the start of the autonomous routine, use a switch statement to determine which of the 4 distances the robot is located at (with some room for placement error). Then call the associated autonomous command for that path.

Resources

Page 22 of At Home Challenges Manual

@dltompki dltompki added requirement We need this feature to complete the challenge at the most basic level feature New functionality good first issue Good for newcomers labels Jan 24, 2021
@dltompki dltompki assigned ghost Jan 28, 2021
@dltompki dltompki self-assigned this Feb 3, 2021
@dltompki
Copy link
Contributor Author

Working on ultrasonic-choosing. Won't close until PR.

@dltompki dltompki removed the good first issue Good for newcomers label Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality requirement We need this feature to complete the challenge at the most basic level
Projects
None yet
Development

No branches or pull requests

1 participant