B4A Library DJI Drones

Status
Not open for further replies.

PABLO2013

Active Member
Licensed User
Greetings I wanted to know if this link is the new sdk, tks +1000



Download the native libraries and copy them to the additional libraries folder:
www.b4x.com/android/files/dji.zip
Download the attached library and copy it as well.

Version 2.0 is released. It is based on DJI SDK v4.0. It supports waypoint missions.
It requires B4A v7+.
 

PABLO2013

Active Member
Licensed User
Greetings
I wanted to know, I see that the waypoints and their actions are created as a kind of list that is then executed ....
but for that this point is defined (<-----------)


B4X:
builder.AddWaypoint(CreateWaypoint(32.8373372, 35.26967794, 40))  (<----------)
    Dim wp As DJIWaypoint = CreateWaypoint()
    wp.AddAction()
    wp.AddAction()
    wp.AddAction()
    builder.AddWaypoint(wp)
    wp = CreateWaypoint()   
    wp.AddAction()
    wp.AddAction()
    builder.AddWaypoint(wp)

The query is in what is the difference or utility of these two lines of code .... what is the difference or its use .... you could be more clear, thanks

B4X:
builder.AddWaypoint(CreateWaypoint(32.8373372, 35.26967794, 40))
    Dim wp As DJIWaypoint = CreateWaypoint(32.83850007, 35.26828855, 30)

The main idea is that only waypoints are created and the points of interest are created with the actions of the drone .... or you can create both (see picture)





joke....Sleep(1000) '<--- required. Otherwise it will fail ¿Drone?
 

Attachments

Last edited:

Erel

Administrator
Staff member
Licensed User
The CreateWaypoint sub is a simple utility sub that creates a DJIWaypoint object.
If you don't need to add actions then you can write it like this and add the waypoint directly to the list:
B4X:
builder.AddWaypoint(CreateWaypoint(32.8373372, 35.26967794, 40))
You can also write it like this:
B4X:
Dim wp As DJIWaypoint = CreateWaypoint(32.8373372, 35.26967794, 40)
builder.AddWaypoint(wp)
There is no difference between the two.
 

gvoulg

Member
Licensed User
Thanks Erel for the new version
Start testing it next days.
Looking at the new lib , the Hotspotmission is not there anymore.
Can we accomplish this with the new tools?
Regards
George
 

DonManfred

Expert
Licensed User
V2.00 is released. It is based on the new SDK.
Thank you very much for the new version including source! I really appreciate :)

I took your source, took the newest V4.1 release, build the AAR with android studio. Changed the AAR to not include the native .so files. I took your native jar, replaced the so´s from 4.1 and implemented my old try to use the UI-Library too.

It ends up in a new AAR, a new native jar, a new sdk jar and for sure in a new Library as i´ve added a lot of things.

Screenshot_2017-05-28-11-37-07.png


First try without Drone connected....





So far it looks like it is working :D

Did not try to run the app outside (with GPS available) but i´m very happy with the results so far. :)

PD: As Erel already delivered the WaypointMission (BIG THANX :)) i´ve added the Hotpointmission in my Version. But as all i added; not tested as yet :)
 
Last edited:

PABLO2013

Active Member
Licensed User
Greetings DonManfred ... is it only available for Android studio?, tks.

Your application looks fantastic, I hope you could have it for b4a, thanks.
 

PABLO2013

Active Member
Licensed User
Greetings I wanted to know if the current wrapping is compatible with the new version 3.3 of dji-sdk These are the first impressions since my new p4pro of the moment the initial tests look good, this weekend I will do used it in a great field, thanks


Dear Developer,

We are pleased to announce the release of DJI Onboard SDK(OSDK) 3.3 — a full re-write of the DJI Onboard SDK that enhances ease of use, extensibility, robustness, along with some great new features.


The new release completely revamps the structure of the SDK, improving access to the APIs while abstracting away other parts of the SDK. An all new API layer with a Vehicle Class Encapsulation allows users to build DJI Onboard SDK applications with a single file, and the significantly improved Doxygen documentation makes it much easier to use OSDK APIs
 

Attachments

Status
Not open for further replies.
Top