-
Notifications
You must be signed in to change notification settings - Fork 162
Add buildAutoChooserWithOptionsModifier #674
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
Conversation
…being put on shuffleboard
|
/format |
|
Well format bot is broken so that's unfortunate Edit: I have no idea if this is how it works since I yoinked it from WPILib, but it may work if you do it? If not, you can try opening pplib in intellij, its usually pretty good with gradle projects. |
|
/format |
|
It looks like the format bot is trying to branch origin/main and doesn't know how to merge it up onto the pr... not exactly sure how thats supposed to work. |
|
Yeah. It seems to work for some people but not others for whatever reason. |
|
That workflow dispatch change wouldn't work since the workflow is very specific to comments |
|
Whoops, those still didn't work. I'm going to revert those because I didn't realize they would get put in this pr immediately. |
|
@mjansen4857 any idea when a release will be cut with this change in it? Thanks! |
I created a new method called
buildAutoChooserWithOptionsModifier, that accepts a second parameter in the form of a lambda function that takes in a stream and returns a stream of PathPlannerAutos.I also added documentation to filter these options based on if they included the text "comp" at the beginning of the name. Some other examples you could do would be override the name with
.setName, filter depending on if you're red or blue, or use.sorted()on the stream to sort them arbitrarily before going on shuffle board.I couldn't run spotless for some weird errors in my environment I need to figure out but the formatting should be good enough. I also manually wrote that documentation so no guarantees it actually works with Writerside 🤷.
P.S. pathplanners great, thanks for all the work you do :)