├── mobile ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── icon_drones_wear.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── icon_drones_wear.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── icon_drones_wear.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── icon_drones_wear.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── icon_drones_wear.png │ │ │ ├── drawable │ │ │ │ └── instruction_bg.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── sousoum │ │ │ │ ├── drone │ │ │ │ ├── ParrotFlyingDrone.java │ │ │ │ ├── ParrotDroneFactory.java │ │ │ │ ├── ParrotJumpingDrone.java │ │ │ │ ├── ParrotMiniDrone.java │ │ │ │ ├── ParrotBebopDrone.java │ │ │ │ └── ParrotDrone.java │ │ │ │ ├── discovery │ │ │ │ └── Discoverer.java │ │ │ │ └── droneswear │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── sousoum │ │ │ └── droneswear │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── sousoum │ │ └── droneswear │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── shared ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ └── color.xml │ │ │ └── drawable │ │ │ │ └── button_res.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── sousoum │ │ │ │ └── shared │ │ │ │ ├── InteractionType.java │ │ │ │ ├── ActionType.java │ │ │ │ ├── JoystickData.java │ │ │ │ ├── AccelerometerData.java │ │ │ │ └── Message.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── sousoum │ │ │ └── shared │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── sousoum │ │ └── shared │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── wear ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── mipmap-hdpi │ │ │ └── icon_drones_wear.png │ │ ├── mipmap-mdpi │ │ │ └── icon_drones_wear.png │ │ ├── mipmap-xhdpi │ │ │ └── icon_drones_wear.png │ │ ├── mipmap-xxhdpi │ │ │ └── icon_drones_wear.png │ │ ├── values │ │ │ └── strings.xml │ │ └── layout │ │ │ ├── action_layout.xml │ │ │ └── activity_main.xml │ │ ├── java │ │ └── com │ │ │ └── sousoum │ │ │ ├── service │ │ │ └── WearMessageListenerService.java │ │ │ ├── views │ │ │ └── JoystickView.java │ │ │ └── droneswear │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── LICENSE ├── README.md ├── gradlew.bat └── gradlew /mobile/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /shared/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /wear/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':mobile', ':wear', ':shared' 2 | -------------------------------------------------------------------------------- /mobile/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /shared/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Shared 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mobile/src/main/res/mipmap-hdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/mobile/src/main/res/mipmap-hdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /mobile/src/main/res/mipmap-mdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/mobile/src/main/res/mipmap-mdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /wear/src/main/res/mipmap-hdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/wear/src/main/res/mipmap-hdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /wear/src/main/res/mipmap-mdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/wear/src/main/res/mipmap-mdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /wear/src/main/res/mipmap-xhdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/wear/src/main/res/mipmap-xhdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /wear/src/main/res/mipmap-xxhdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/wear/src/main/res/mipmap-xxhdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /mobile/src/main/res/mipmap-xhdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/mobile/src/main/res/mipmap-xhdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /mobile/src/main/res/mipmap-xxhdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/mobile/src/main/res/mipmap-xxhdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .idea/ 3 | .gradle 4 | /local.properties 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | /releases 11 | -------------------------------------------------------------------------------- /mobile/src/main/res/mipmap-xxxhdpi/icon_drones_wear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parrot-Developers/DronesWear/HEAD/mobile/src/main/res/mipmap-xxxhdpi/icon_drones_wear.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Aug 12 00:54:01 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /mobile/src/main/res/drawable/instruction_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /shared/src/main/java/com/sousoum/shared/InteractionType.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.shared; 2 | 3 | /** 4 | * Created by d.bertrand on 15/01/16. 5 | */ 6 | public class InteractionType 7 | { 8 | public static final int NONE = 1; 9 | public static final int ACTION = 2; 10 | public static final int JOYSTICK = 4; 11 | } 12 | -------------------------------------------------------------------------------- /shared/src/main/res/drawable/button_res.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /shared/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /shared/src/main/java/com/sousoum/shared/ActionType.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.shared; 2 | 3 | /** 4 | * Created by d.bertrand on 15/01/16. 5 | */ 6 | public class ActionType 7 | { 8 | public static final int NONE = 0; 9 | public static final int JUMP = 1; 10 | public static final int TAKE_OFF = 2; 11 | public static final int LAND = 3; 12 | } 13 | -------------------------------------------------------------------------------- /wear/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DronesWear 3 | JUMP 4 | TAKE OFF 5 | LAND 6 | Action sent 7 | Connecting… 8 | 9 | -------------------------------------------------------------------------------- /mobile/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /mobile/src/test/java/com/sousoum/droneswear/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.droneswear; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /shared/src/test/java/com/sousoum/shared/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.shared; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest 11 | { 12 | @Test 13 | public void addition_isCorrect() throws Exception 14 | { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /mobile/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /mobile/src/androidTest/java/com/sousoum/droneswear/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.droneswear; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /shared/src/androidTest/java/com/sousoum/shared/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.shared; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase 10 | { 11 | public ApplicationTest() 12 | { 13 | super(Application.class); 14 | } 15 | } -------------------------------------------------------------------------------- /mobile/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 40dp 7 | 15dp 8 | 15dp 9 | 15dp 10 | 11 | -------------------------------------------------------------------------------- /shared/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #C6C6C6 6 | #607D8B 7 | #212121 8 | #727272 9 | #FFFFFF 10 | #B6B6B6 11 | #FFFFFF 12 | -------------------------------------------------------------------------------- /mobile/src/main/java/com/sousoum/drone/ParrotFlyingDrone.java: -------------------------------------------------------------------------------- 1 | package com.sousoum.drone; 2 | 3 | import android.content.Context; 4 | import android.support.annotation.NonNull; 5 | 6 | import com.parrot.arsdk.ardiscovery.ARDiscoveryDeviceService; 7 | 8 | /** 9 | * Created by d.bertrand on 15/01/16. 10 | */ 11 | public abstract class ParrotFlyingDrone extends ParrotDrone { 12 | 13 | public ParrotFlyingDrone(@NonNull ARDiscoveryDeviceService deviceService, Context ctx) { 14 | super(deviceService, ctx); 15 | } 16 | 17 | public abstract void sendEmergency(); 18 | } 19 | -------------------------------------------------------------------------------- /wear/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/d.bertrand/Development/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /mobile/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/d.bertrand/Development/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /shared/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 26 5 | buildToolsVersion "26.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 21 9 | targetSdkVersion 26 10 | versionCode rootProject.ext.versionCode 11 | versionName rootProject.ext.versionName 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | testCompile 'junit:junit:4.12' 24 | compile 'com.google.android.gms:play-services-wearable:11.0.4' 25 | } 26 | -------------------------------------------------------------------------------- /shared/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/d.bertrand/Development/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /wear/src/main/res/layout/action_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 |