Skip to content

Instantly share code, notes, and snippets.

@dheaney
Created January 10, 2014 03:21
Show Gist options
  • Select an option

  • Save dheaney/8346471 to your computer and use it in GitHub Desktop.

Select an option

Save dheaney/8346471 to your computer and use it in GitHub Desktop.
Autonomous
Pseudocode for Autonomous Period
Start with block in arm. Position robot.
0. Start timer.
1. Travel forward until IR beacon is in section 5.
2. Stop timer. Save value as n.
2. Rotate 90 degrees.
3. Travel forward until distance is less than ___.
4. Raise arm.
5. Travel forward until distance is less than ___.
6. Release block.
7. Rotate 90 degrees.
8. Travel forward for n amount of seconds.
9. Rotate -90 degrees.
10. Travel forward until color sensor senses blue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment