We're trying to use a panda-board as a mediator between the flight controller and the mission planner. Where we send the bytes read on the serial port to a TCP server running on a linux machine, and the mission planner connects to this server.
But, the problem is that it fails in the connection, and outputs an exception. Has anyone tried forwarding mavlink packets?
i need more information.
so long as you have 2 way comms, it will work.
We were able to solve the problem of establishing a connection, but the sensors data are not available in the flight data tab.
Although when using the CLI terminal tab it works perfectly and tested the readings of imu, sonar and optical flow.
We use qextserialport to read directly from the flight controller, whenever readyRead signal is fired we forward the bytes read to a TCP server to which the mission planner is connected.
Are we supposed to wait for certain number of bytes to be read before forwarding packet?
so long as there are no large delays it should be fine. check the connection stats ni the planner for lost packets
After checking the stats in the planner, I found out that the issue was with me wrongly writing an extra null terminating character to the string mavlink message sent from mission planner to the flight controller.
What documentation exists that would help me to connect another processor to APM 1 via UART, or other serial bus, and be able to display the data via Mission Planner? Does Mission Planner have a simple way to label and display additional data?
Dan, depening on what you want to do, most people just override an existing item they dont use.
And to override an existing item, I need to learn how to use Mavlink commands - is that right?
I'm doing some thing similar, but with a Beagleboard. I was hoping to use UDP instead of TCP over the Wifi link between the Beagleboard (onboard the copter) and the ground station.
Any chance I could get a look at your forwarding code?
I try to make a bridge between my flight controller using megapirate ng and an android phone with the ioio board for android.
I have a communication in uart between the two board and I would like tranfer mavlink packet from uart to IP (3G).
Do you have code or tricks to implements forwarding mavlink packets ?