When my team got it’s kit of parts, I starting looking into the documentation for the color sensor, and came across a problem. My team uses Python to program the robot, and I could find no indication of the sensor supporting Python! I’ve waited awhile hoping someone might make the sensor usable with python for teams, but unless I haven’t found it, there is still no python support. Is there already python support and I just haven’t found it? Will there actually be Python support and if so, when? Any information would be helpful, thanks.
The support is there. We have not yet gotten a chance to try it. I ran it in the simulator, and it seems to be working, but I cannot find a way to actually expose it to colors in the simulator.
Here is a link to the example.
I think the code to install the library is…
py -m robotpy_installer download rev-color
py -m robotpy_installer install rev-color
We’re still working on getting documentation out there, but the sensor should work as mentioned above. Let us know if it doesn’t work for you!
It seems I was looking in all the wrong places. Thanks to the three of you I now know and I can work on programming the sensor now!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.