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

Auto mode example #16

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

ajlewis02
Copy link
Contributor

Example auto-mode-capable robot, based off of the existing PestoLink example robot.

When the auto mode start button is pressed (defaults to 1), it'll enter auto mode.

While in auto mode:

  • It'll exit immediately if the auto mode cancel button is pressed (defaults to 2)
  • It'll ignore manual controls
  • If not cancelled, it'll drive forwards for 1 second, stop, and exit auto mode.

Beyond the base functionality, the script provides examples for:

  • Implementing a (very) basic state machine
  • Behaving differently based on time elapsed.

@SaintSampo SaintSampo merged commit 947c422 into AlfredoSystems:master Jul 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants