Hello, I am Adrian from team 6922 and I do not know how to set up the color sensor in VSCode. I do not know what libraries to download or how to put them inside the code. I would appreciate any help. Thanks!
- Software Libraries
Then u Must use the command pallete (Ctrl + shift + p) to manage vendor libraries (> wpilib: mange vendor libraries) and add the Json file for the rev v3 color sensor to the venderdeps folder of the code by clicking on install offline library and then on the rev json file
Here are two helpful links to get it up and running.
I’d post our code, but for testing purposes, we pretty much hard copied what REV’s example was.
Thanks!
Thanks for the help!
You can skip downloading the ZIP and use the online vendor library option instead.
- Ctrl + shift + P
- Choose WPILib: Manage Vendor Libraries
- Choose Install new libraries (online)
- Enter this URL
http://revrobotics.com/content/sw/color-sensor-v3/sdk/REVColorSensorV3.json
Here’s some code we’ve been working on. It’s not finished yet because we don’t actually have a manipulator for the Control Panel yet, but this is working on our test board with the color sensor plugged in to the I2C port on the roboRIO.
Subsystem that interacts with the color sensor and will eventually move our manipulator: ControlPanelSubsystem
Command for completing Phase 2: RotateWheelCommand
Command for completing Phase 3: SetColorCommand
OMG! Thank you so much!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.