mjansen4857 / pathplanner

A simple yet powerful path planning tool for FRC robots
https://pathplanner.dev
MIT License
398 stars 125 forks source link

Added filtering to buildAutoChooser for C++ #679

Closed ThePhoenixFox closed 1 month ago

ThePhoenixFox commented 6 months ago

Added a new input for buildAutoChooser for C++ which allows filtering out autos based on their internal data like name or start position. Default Option is guaranteed to be unfiltered to prevent nullptr. GetSelected() causes a default initialized Command* to nullptr.

Added buildAutoChooser with filtering to writerside wiki explaining how it works.

mjansen4857 commented 1 month ago

Needs some conflicts to be resolved then I can merge this. It looks like its just conflicts with includes. You can accept the version from the current main branch.

ThePhoenixFox commented 1 month ago

It been a while since I reviewed my code and I am just going to remove this pull request and make a new one since pathplanner has changed a bit. I also want to address some of my inefficiencies which I brought into code such as always making new commands reference everytime a new frc::SendableChooser is requested. I want to get this done before my code needs to become backward capability.