1. Black Friday Sale - 50% off

    B4A Standard for $29 instead of $59!
    Buy Now
    Dismiss Notice

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

    What is airmap credit card?
     
  2. DonManfred

    DonManfred Expert Licensed User

    If you are talking about your airdata.com account then you maybe contact them to ask this question.

    http://airdata.com/contact
     
    Last edited: Jul 20, 2017
  3. PABLO2013

    PABLO2013 Active Member Licensed User

    Is airmap or airdata?
     
    DonManfred likes this.
  4. DonManfred

    DonManfred Expert Licensed User

  5. imbault

    imbault Well-Known Member Licensed User

    Does this lib works on Dji Spark ?
     
  6. DonManfred

    DonManfred Expert Licensed User

  7. shb777

    shb777 Active Member Licensed User

    it asks you for a airmap credit card when you register as a dji developer. i put in my mastercard and it worked. now i have another question. where does the aar file in the library zip go. i'm getting this error when i compile drone

    B4A version: 7.01
    Parsing code. Error
    Error parsing program.
    Error description: Unknown type: djisdkmanager
    Are you missing a library reference?
    Occurred on line: 18 (Main)
    Private sdk As DJISDKManager

    only gson is showing up in my libraries even though dji_native.jar is in the library directory

    steve
     
  8. DonManfred

    DonManfred Expert Licensed User

    the DJI.aar, DJI.xml, DJI.jar and the dji_native.jar needs to be copied to the ADDITIONAL library folder.
     
  9. shb777

    shb777 Active Member Licensed User

    i didn't get a DJI.xml in my zip steve
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    It is attached to the first post.
     
  11. DonManfred

    DonManfred Expert Licensed User

    Download the file DJI_lib.zip from post #1 and extract them to your additional libraries folder.
     
  12. shb777

    shb777 Active Member Licensed User

    ok I got it to compile and run. sorry for so many questions. i haven't used b4a since march, so i'm a little rusty. steve

    hooked it up to my controller and mavic pro. just have a white, grey and black rectangles.
    didn't say registered successfully. but another new dji app i just got, drone harmony, did register and run correctly. steve
     
    Last edited: Jul 23, 2017
  13. Erel

    Erel Administrator Staff Member Licensed User

  14. shb777

    shb777 Active Member Licensed User

    ok i found out that my application label and package name were different than what I told dji. now it's working. thx erel!
     
  15. shb777

    shb777 Active Member Licensed User

    hi I'm getting this every time I compile:


    Convert byte code - optimized dex. (207.07s)
    Optimized dexer failed. Switching to Standard dexer.
    Packaging files. (6.10s)
    Copying libraries resources (10.36s)
    Found 12 resource files.
    Signing package file (debug key). (8.88s)
    ZipAlign file. (0.14s)
    Installing file to device.

    so it's taking over 3 minutes to do optimized dex and it's always failing. maybe there's a way i can do standard dexer in the first place.

    I want to use my nvidia shield, and it won't fit controller horizontally, but it will fit vertically. I compiled in portrait mode and it worked. so i'm gonna have
    three display windows stacked vertically. one for video, one for telemetry and one for the map. steve

    i see on your video your getting a map. I'm not getting any map.
     
    Last edited: Jul 24, 2017
  16. Erel

    Erel Administrator Staff Member Licensed User

    You need to follow Google Maps tutorial.

    About the optimized dex step. Try to increase MaxRamForDex to 4096.
    http://www.b4x.com/search?query=MaxRamForDex
     
  17. shb777

    shb777 Active Member Licensed User

    I set MaxRamForDex to 4096 and it didn't help. My computer only has 4 gig of ram so I set it 3072 and that didn't work either. Should I try a better computer?
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    It will help as DJI SDK is quite large.

    You can set UseOptimizedDexer to False to disable the optimized dexer.
     
  19. shb777

    shb777 Active Member Licensed User

    ok thanks
     
  20. shb777

    shb777 Active Member Licensed User

    I've got the drone first working the way i want it. the most important thing missing is RC signal strength. Will that be included in the new SDK you're working on. any rough timetable for that?
    Also, when I power on the mavic, the tablet brings up my 4 drone programs. I select the
    b4a program, but it doesn't run. if i then run it manually, by it's icon, it runs and connects ok.



    Steve
     
    Last edited: Jul 29, 2017
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