I want to use the Rev Robotics Color Sensor V3 in this build year. I was able to download the java code as well as install the RevColorSensorV3.json library. I copied the code into VSCode, and found the .json program is indeed installed in the Vendordeps folder.
It seems the code is hung up on this line of code:
import edu.wpi.first.wpilibj.util.Color;
I get an error code that says it cannot resolve this issue. Because this line is in error, any line of code relating to color is also in error.
I am using VSCode 2019 . There is an object called ColorShim that takes this line out of error.
Any ideas out there would be greatly appreciated. it’s Sunday and our stores are closed, my snack pile is dwindling down to crumbs. Energy fading…fading…fadin…fad…fa…f…----------------
Thank you
gameworn
First of all, using up-to-date VSCode and WPILib versions will probably solve the problem. Make sure to import the project into 2020 or create a new 2020 project. If this doesn’t fix the issue, upload pictures of your code and errors, or the code itself to github. It is a bit hard to help without seeing the code…
I was using VSCode to get last years code off of the roboRIO. We were having issues with it so I wanted to load some additional code as well to see if the roboRIO was indeed causing loading issues.
I am now using VSCode 2020.