Full Coprocessor support has been added and verified to be working!
This now allows RP5 devices (Raspberry Pi 5s or Orange Pis) to run a JAR file on startup and automatically connect to the radio. With the correct static IP address, you can easily offload tasks to the coprocessor, which reduces CPU usage on the RIO. CPU usage on the RIO is very easy to max out, and when it is maxed, it can cause the robot to stop functioning properly as the command scheduler becomes overloaded and starts lagging significantly.
We now communicate with the RIO over TCP instead of using the default NT4. FRC NT4 is a great solution for things that do not require instant data, such as dashboards, but trajectory calculations need the lowest latency possible, so TCP was the only real option. We should see around a sub-100 ms delay, which is a huge improvement compared to NetworkTables. I’ve seen around 40 ms on a good day.
I also made some minor changes to the trajectory calculator to allow tuning points to be added. This lets real-world data update the slip ratio, improving accuracy in real-life conditions.
Log in to leave a comment