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

Feature Request - Reuse meep meeep TrajectoryActionBuilder code into our code #5

Open
rh0dium opened this issue Feb 5, 2024 · 1 comment

Comments

@rh0dium
Copy link

rh0dium commented Feb 5, 2024

Could you provide an example to allow us to reuse the code from meep to our automous. Currently we are copying and pasting but surely there has to be a better way. The challenge is that your abstraction of bot.getDrive() won't allow us to nicely use this in our own internal auto routines.

Thoughts?

@rbrott
Copy link
Member

rbrott commented Feb 6, 2024

There are many ways to go about sharing code. One simple approach is a function like

TrajectoryActionBuilder addTrajectorySegment(TrajectoryActionBuilder tab) {
    return tab.splineTo(...); // etc.
}

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

2 participants