I am in the process of completing my first Ardupilot build: a quadcopter for autonomous data collection. The data will be collected by a sensor on the quad, which is processed by a UART capable analogue to digital converter. Ideally, I would want the data to be logged, perhaps by a companion computer, and streamed to the GCS via the dragonlink telemetry radio I’m using. Based on preliminary research, it seems that to make the latter part happen, I would need to write custom sensor drivers for the autopilot to interpret the ADC’s signal and then write custom MAVlink messages to send the data to the GCS. Assuming this is correct, I am still missing two parts of that equation: how to get the ADC data (which is interpreted by the custom sensor driver) into the new MAVlink message, and then how to have mission planner see those new messages (or having any other software read them).
However, this method seems very involved. Would it be possible to, for example, have the ADC plugged into a raspberry pi, which processes the data (would end up being two three-channel data sources) and then sends it to the autopilot via UART, which in turn sends it to the GCS without having to write custom messaging? Or is there a completely different method I’m missing?