B4A Library DJI Drones

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jan 15, 2017.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    V2.00 is released. It is based on the new SDK. There are some breaking changes as the SDK is very different. It supports waypoint missions.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    gvoulg and DonManfred like this.
  3. PABLO2013

    PABLO2013 Active Member Licensed User

    many many tks

    I will review the information and then upload the evidence, thank you
     
  4. PABLO2013

    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+.
     
  5. DonManfred

    DonManfred Expert Licensed User

  6. PABLO2013

    PABLO2013 Active Member Licensed User

    DonManfred
    tks
     
  7. PABLO2013

    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 (<-----------)


    Code:
    builder.AddWaypoint(CreateWaypoint(32.837337235.2696779440))  (<----------)
        
    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

    Code:
    builder.AddWaypoint(CreateWaypoint(32.837337235.2696779440))
        
    Dim wp As DJIWaypoint = CreateWaypoint(32.8385000735.2682885530)

    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?
     

    Attached Files:

    Last edited: May 26, 2017
  8. Erel

    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:
    Code:
    builder.AddWaypoint(CreateWaypoint(32.837337235.2696779440))
    You can also write it like this:
    Code:
    Dim wp As DJIWaypoint = CreateWaypoint(32.837337235.2696779440)
    builder.AddWaypoint(wp)
    There is no difference between the two.
     
    DonManfred likes this.
  9. PABLO2013

    PABLO2013 Active Member Licensed User

  10. gvoulg

    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
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    It will be added in the future.
     
    gvoulg likes this.
  12. DonManfred

    DonManfred Expert Licensed User

    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....



    [​IMG]

    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: May 28, 2017
  13. PABLO2013

    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.
     
  14. DonManfred

    DonManfred Expert Licensed User

    The Screenshots ARE from a B4A Project. Honestly it is the Sample provided with the Drones Lib. But added more objects to it.
     
  15. PABLO2013

    PABLO2013 Active Member Licensed User

    Ok...looks cool...can you post it....tks
     
  16. DonManfred

    DonManfred Expert Licensed User

    i´m not finished....
     
  17. PABLO2013

    PABLO2013 Active Member Licensed User

    ok...sorry... apologize...tks
     
  18. PABLO2013

    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
     

    Attached Files:

  19. Erel

    Erel Administrator Staff Member Licensed User

    The Onboard SDK is not relevant. The DJI library is based on the Mobile SDK.
     
  20. shb777

    shb777 Active Member Licensed User

    how do you get a airmap credit card to register
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice