I was just setting up this years repository, I know there have been changes with the library this year in terms of the command framework. I had some separate library code that filled in the gaps that utilized the JoystickButton class and the Trigger class. However after the update I can’t find those anymore. I would assume they were deprecated, but I guess not.
Button and trigger are now here: Package edu.wpi.first.wpilibj2.command.button
1 Like
how would I add this to my dependencies?
There are now two options for command based programming. The “old” one (2019 and previous seasons) and the “new” one for 2020. They are now both vendor dependencies. As their classes are not compatible, you have to pick one or the other. When you create a new robot project, you can pick which framework to use and it will add the vendor dependency automatically to the project. If you upgrade a 2019 robot project it will automatically add the vendor dependency for the “old” library to the created project.
2 Likes
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.