diux-dev / rosettadrone

Android-based mavlink wrapper for DJI drones
BSD 3-Clause "New" or "Revised" License
113 stars 51 forks source link

Can not get the Video to work on the latest platform #34

Open The1only opened 4 years ago

The1only commented 4 years ago

I was able to update all libraries to the latest, and thus add support for the latest DJI Drones. However with MobileSDK 4.10 4.111 and 4.11.1 I can only get the telemetry to work. I have sniffed deep in to the code, but there must be some changes that I can't get. I am able to run the DJI Mobile SDK video demo just fine, but not inside rosettadrone.

Any one else have tested this?

I was able to get QGround control, mavproxy, and drone kit (python based) to work all at the same time, enabling me to write python scripts to fly the Mavic Pro 2 drone. But can't get video.

The1only commented 4 years ago

I got the entire project updated to DJI SDK 4.11.1, Androidx, the new DJI SDK Video system, all libraries, and Gradle is at the latest stage... I need a few more days to make it stable, the job took me 8 weeks... but then I am no expert. Question is, I forked the project while working on it, the changes are quite substantial. Do you want me to merge back?

https://github.com/The1only/rosettadrone

sdowhy commented 4 years ago

Hey @The1only , that's awesome to hear! Unfortunately we don't work on this project anymore, which means I was never able to finish the updated version for you guys. My advice would be keep it as a fork as I do not have time to do a code review, though maybe this will change somewhere down the road.

The1only commented 4 years ago

OK I will, just to let you know the code now work with DJI Mavic Pro 2, Thanks for a great job originally.

The1only commented 4 years ago

Did you ever write a final status report? I am now at the stage that I am in the air, I can take-off but then I got some issues, So I wonder how far you ever got? Did you fly missions? did you fly Dronkit scripts?

sdowhy commented 4 years ago

Sure. So here's kinda the status of things we were testing with internally (not released on here, but we were in the process of being added before having to deprecate support due to other projects):

Upgrade to 4.10 SDK Support for newer versions of android Cleanup of redundant/un-needed/messy compiled dependencies Full waypoint mission support (including robust workarounds for DJI SDK restrictions) Multiple simultaneous telemetry feeds A more robust video pipeline which includes KLV metadata encoding, multicast support. Video displayed inside RosettaDrone. Additional configuration options for DJI specific features (like LEDs, etc).

I'll see if it's possible to get this version cleaned up and released before I leave my current position in 2 weeks, but it's unlikely.

The1only commented 4 years ago

I got it over to 4.11.1 and the latest Android(x), the video part is allmost totally rewritten, video display innside Rosettadrone is added (mandatory with the new sdk). It was quite a job, there ate several bugs and workarounds neede to be handled. Also the Mavlink is uppdated, and I am about to add the DJI simulator. Also the new DJI login/register page is added... I got issues with waypoint flying and dronekit flying. I can takeoff from QGC but not fly around.

The1only commented 4 years ago

Sorry, I created a PR to the wrong master, just ignore it. My mistake.

The1only commented 4 years ago

If you just reject my PR I will delete it and not do the mistake again.