In this season i decided to make vision targeting with RPI4 . I have almost everything ready on Raspberry Pi 4 side but i don’t know how to transfer data(distance to hexagon and its position from center of image, 3 ints ) from it to Roborio. I have no free ethernet port on roborio and router. On raspberry i use python and opencv . Is there and libraries for raspberry and roborio to send data by for example digital ports ?
1 Like
Your best approach is to use Ethernet and add a small Ethernet switch to your robot. There are even some USB-powered ones out there.
To send data from a Pi to a Rio, we use NerworkTables. NetworkTables is a communication protocol that allows you to send data from a coprocessor and access it on the Rio, or vice versa.
There are implementations and documentation available in Java / C++ and in Python.
2 Likes
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.