Color Sensor V3 with Robotpy?

Hello CD!

So we received the V3 color sensor by Rev, and like many people, we were excited. However, looking into it further, the I2C port in the robotpy wpilib api is a little overwhelming. Can someone explain how I determine the correct register addresses? I understand that Rev provides the 0x52 ID, which I use to create the object, but what is the kMXP port exactly, if onboard is the fixed port on the Rio?

On my output side of things, I see static constants when I try to ‘read’ the sensor. How do I access the specific color values (and how are they returned)? I have seen other videos on using it with Labview, and the other supported languages have official libraries.

Once again, if I could get some clarification on how to handle this sensor, I’d appreciate it! Thanks in advance!

When RobotPy 2020 is released, the REV libraries will be one of the first things I put together for wrapping.

2 Likes

Thank you so much! Look forward to seeing it!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.