Im new to programming, our last progrmmer left and I have no clue what im doing wrong. I imported the rev code into WPI VS code, then imported the REV API, however, it wont build. and now i also have new error codes that I wasnt getting when I did this with the 2023 tools 2 months ago.
The only changes I needed to make to the template were related to REV removing ‘Max’ from the api calls. The tool tips in the 2024 vendordep make the appropriate references to the new functions.
So I updated the API to the 2024.2 version. However I still have all the same error code. One being “IdleMode not set to a type”, and other being “The import com.revrobotics.CANSparkMax.IdleMode cannot be resolved”
Seeing it visually helped so much. Thank you so much for helping me. For future reference is there anywhere that lists these changes so I don’t have to resort to chief delphi?
So I found the issue after finding this post: [WPILib Blog] 2024 Kickoff Release of WPILib - Technical / Programming - Chief Delphi
Apparently thats both the fix for build.gradle, Kinematic values, and the get values you had replaced. But hopefully if anyone has my issue they can find both of you and that post just as helpful. Thank you both
It is a good idea to always stay up to date with the vendor libraries. Installing online makes this easier and you can go Manage Vendor Libraries → Check For Updates (online). Currently the RevLib version is 2024.2.3.
it was necessary to update API’s, I was also using the 2023 version of the code, which REV has updated. Beyond that there was a dev post that fixes gradle issues on new laptops, which I posted prior.