-
Notifications
You must be signed in to change notification settings - Fork 130
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
Added buildAutoChooser to C++ lib #670
Conversation
I'd recommend running builds locally to help find any issues a bit easier.
You can also fix formatting issues with |
Sorry, this is my first time doing this. When I tried to run gradlew on my device, I got errors saying that the settings couldn't be found. |
No worries. I usually have pretty good luck with IntelliJ so you might want to give that a try. It has built in gradle support that usually takes care of setting up everything without any issues. WPILib VSCode also works. The "Build robot code" option should do the same thing. Does that work for you? You have to also make sure you have the |
There are two versions of getAutonomousCommand() in the Writerside wiki. The first one is the easy readable one while the second one creates a frc2::CommandPtr since that is what most example programs use for their default return type. pathplanner/Writerside/topics/pplib-Build-an-Auto.md Lines 506 to 514 in da4d22c
|
Added a equivalent version of buildAutoChooser for cpp from java.
Using the std::filesystem, we can inspect the files on the drive.
Since SendableChooser doesn't allow for rvalue storage, we need to store the commands ourselves so the user will not get a nullptr when trying to access a command* from GetSelected().