I have been using the pololu rpi slave arduino library with some success on a zumo 32u4-raspberry pi 3 robot.
In the AStarRPiSlaveDemo.ino, there is a comment above the "struct Data" line that mentions changing the data format.
So far I have been able to manipulate this and a_stary.py to allow the RPi to read the line sensors and line position as well as allow the Pi to set the mode (line following or "manual" motor control) and also set the motor speeds.
Which leads me to ask, are the any resources or documentation someone could point me to that would help me understand what's going on better so that I can create my own custom data structure?
My goal is to be able to write a python script that reads in a config file and sends those parameters over i2c to the arduino side (motor speed, line following P-I values, mode set, etc). I also want the script to read data from the arduino side to the Pi to monitor it remotely via ssh.
I am a novice at best with this stuff but am I trying to learn.