getting started with the dji mobile sdk€¦ · open sample code directory in android studio change...

47
GETTING STARTED WITH THE DJI MOBILE SDK Godfrey Nolan

Upload: others

Post on 23-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

GETTING STARTED WITHTHE DJI MOBILE SDK

Godfrey Nolan

Page 2: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

AGENDA

▪ Pre-Req’s

▪ Hello, World!

▪ SDK Ecosystem

▪ Now what

▪ Deploying

▪ Other DJI SDK’s

▪ Lessons Learned

2

Page 3: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

SOME OF OUR DRONE APPS

▪ Agribotix (iOS)

▪ Counting Sheep and Cattle (Android)

▪ Roof Calculator (Android)

▪ Real Estate Appraisal (iOS - Parrot)

▪ Secure Drone Labs (Android -ArduPilot)

3

Page 4: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

PRE-REQ’S

Register for DJI

Developer account

Need an App Key

from Developer

account

Mavic, Phantom,

Spark etc.

Android Studio or

XCode

4

Page 5: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

PRE-REQ’S

5

BASIC PRO

Start developing apps today

Standard Support

Up to 20 mobile app activations

Everything from the Basic Tier

Unlimited mobile app activations

Unlimited Preferred Support

Access to Premium Support

Access to MiFi Applications

SDK Beta versions

Free $99/Year

Active

Started on 2018-10-11 09:00:16

Renews on 2019-10-11 09:00:16

Page 6: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

6

HELLO, WORLD - ANDROID

Page 7: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

7

HELLO, WORLD - ANDROID

▪ Git clone https://github.com/dji-sdk/Mobile-SDK-Android

▪ Open Sample Code directory in Android Studio

▪ Change the App Key in the AndroidManifest.xml

▪ Change the build.gradle file

▪ Connect phone to Spark WiFi (or other drone)

▪ Push APK to phone

Page 8: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

8

HELLO, WORLD - ANDROID

Page 9: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

9

HELLO, WORLD - ANDROID

Page 10: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

10

HELLO, WORLD - ANDROID

Page 11: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

11

HELLO, WORLD - ANDROID

Page 12: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

12

HELLO, WORLD - ANDROID

Turn on the Spark Drone

1. Connect Mobile Device to the WiFinetwork created by the product.

2. Run Sample App on Mobile Device.

Phantom 4 etc.

1. Turn on the Remote Controller.

2. Turn on the Aircraft and wait until the Remote Controller has connected with the Aircraft.

3. Connect iOS/Android Mobile Device to the Remote Controller using a Lightning (iOS) or USB (Android) cable.

4. Run Sample App on the Mobile Device.

Page 13: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

13

HELLO, WORLD - ANDROID

Page 14: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

14

HELLO, WORLD ANDROID

Page 15: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

15

Page 16: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

16

DEFINE THE ECOSYSTEM

Page 17: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

17

DEFINE THE ECOSYSTEM

Page 18: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

18

DEFINE THE ECOSYSTEM

Page 19: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

19

TESTING

Page 20: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

20

TESTING

Page 21: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

21

TESTING

Page 22: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

22

NEXT STEPS

https://developer.dji.com/mobile-sdk/documentation/android-tutorials/FPVDemo.html

Page 23: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

23

CAMERA APP

Page 24: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

24

CAMERA APP

Page 25: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

25

CAMERA APP

Page 26: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

26

CAMERA APP

Page 27: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

27

CAMERA APP

Page 28: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

28

CAMERA APP

Page 29: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

29

CAMERA APP

Page 30: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

30

CAMERA APP

Page 31: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

31

CAMERA APP

Page 32: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

32

CAMERA APP

Page 33: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

33

CAMERA APP

Page 34: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

34

CAMERA APP

https://github.com/DJI-Mobile-SDK-Tutorials/Android-FPVDemo

Page 35: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

35

CAMERA APP

Page 36: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

36

CAMERA APP

Page 37: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

37

CAMERA APP

Page 38: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

38

CAMERA APP

Page 39: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

39

CAMERA APP

Page 40: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

40

CAMERA APP

Page 41: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

41

CAMERA APP

Page 42: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

42

CAMERA APP

Page 43: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

43

DEPLOYING

Page 44: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

44

SNAFU’S

Page 45: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

45

RESOURCES

https://developer.dji.com

https://github.com/dji-sdk/Mobile-SDK-Android

https://stackoverflow.com/

questions/tagged/dji-sdk

Page 46: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

46

Bonus Slides – Tello Node-Red

Page 47: GETTING STARTED WITH THE DJI MOBILE SDK€¦ · Open Sample Code directory in Android Studio Change the App Key in the AndroidManifest.xml Change the build.gradle file Connect phone

47

Bonus Slides – Parrot Anafi Ground SDK