I want to know how can I communicate information stored in a class or struct from ArduPilot (i.e. Arduino) to Raspberry PI or Beaglebone, via serial port or an I2C port from ArduPilot board??
I have a struct or a class that will hold some dynamically changing values in real-time. I do not want to use the traditional string sending information. I need something that is more robust (like sending an instance of a class and then retrieving it at the other end).
Note: Ardupilot is running a Arducopter code.
E.g. communication between an mbed microcontroller and beaglebone can be achieved by using a communication structure that acts like a wrapper/ bridge between the two.
Any suggestions on how to achieve this will be appreciated.