Recently I am required to use DJI vehicle with QGC, the function I want to achieve is display the trajectory of my DJI and send some commands to DJI, and when DJI receive certain msg, I can use their SDK to do somethings. However, when I tried to send mavlink msg(heartbeat, global position, attitude, local position) to QGC from DJI onboard computer, QGC has succeeded in receiving those msgs, and onboard computer has received heartbeat from QGC, but the the UI of QGC never shows it is connected. I don’t know if there is a way to make it work.
Or I can go another way, which is to simply realize my minimum function, display trajectory and send certain commands. Can I jump the instantiation of the Vehicle and some part of the communication flow between Vehicle and QGC, and change code to enable QGC display vehicle is connected when I receive heartbeat and global position and simply draw trajectory based on the global position msgs?
that you need to investigated into the code. Not sure Px4/QGC has document on that but the code always tell everything.
Since you already tried sending heart beat back, I would suggest to be careful about the mavlink heartbeat type, as that indicates many different things.
Hi,Orico4.
Thanks for your advice, I have succeeded in doing that by sending right hearbeat msgs and sending params.
A great git repo can be looked into is rosetta drone, I actually use their params list from DJIMock.txt to get my things work.