These are chat archives for dronekit/dronekit-android

12th
Jan 2016
Greg Parsons
@gregparsons
Jan 12 2016 02:28
maybe this is outside the scope as well, but I'm trying to './gradlew installDebug' but it fails at preDexDebug with a "com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe)...". Am I doing something obviously wrong?
chaviw
@chaviw
Jan 12 2016 02:41
@gregparsons You’re most likely using Java 1.8.
@gregparsons You should use Java 1.7
Greg Parsons
@gregparsons
Jan 12 2016 03:05
Cool. Thanks. I guess I needed a clean clone as well.
Greg Parsons
@gregparsons
Jan 12 2016 03:14

Actually, installDebug fails even earlier with 1.7...* Where:
Build file '/Volumes/alpine1/_spider_sync/Lab/tango/dronekit/dronekit-android/ServiceApp/build.gradle' line: 182

  • What went wrong:
    A problem occurred evaluating project ':ServiceApp'.

    myhost:myhost: nodename nor servname provided, or not known

...on El Capitan.
Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 03:44
@gregparsons can you paste the output from the gradle console (should be on the lower right corner in Android Studio).
Greg Parsons
@gregparsons
Jan 12 2016 04:05
I'm not using Android Studio. Just running it from the command line...this is the output with JDK 1.7:

alpineOsx:dronekit-android alpine$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
alpineOsx:dronekit-android alpine$ ./gradlew installDebug

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Volumes/alpine1/dronekit/dronekit-android/ServiceApp/build.gradle' line: 182

  • What went wrong:
    A problem occurred evaluating project ':ServiceApp'.

    alpineOsx: alpineOsx: nodename nor servname provided, or not known

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.184 secs

Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 04:06
@gregparsons are you able to build successfully?
i.e: ./gradlew clean build.
Greg Parsons
@gregparsons
Jan 12 2016 04:08
No. It fails in the same place. I tried a fresh clone also.
Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 04:10
and it's the develop branch, right?
Greg Parsons
@gregparsons
Jan 12 2016 04:11
yeah
it seems the gradle config is not able to retrieve the local host on your machine.
can you try commenting that line, and use return '\"\"' instead.
Greg Parsons
@gregparsons
Jan 12 2016 04:16
sure...thanks....
Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 04:20
@gregparsons no problem. the local ip is used when running against sitl (the simulation software) so the built apk can connect to it.
it's not needed for normal build, and we'll update the code to remove it for these instances.
Greg Parsons
@gregparsons
Jan 12 2016 04:22
build finished ok.
install worked too. great.
So if you have two more seconds, that brings up my real question. Do you have a stripped down branch that might be better for someone just looking to send mavlink and nothing more? You've done some great integration of the USB serial project that I'm taking advantage of, but am kind of cpu and memory limited and might be better off without some of your more "refined" work.
Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 04:32
I don't have a stripped down version, but you would want to take a look at the MavLinkConnection, and UsbConnection classes.
These two classes can be used 'standalone' from the 3DR Services app, and the only dependencies they use are the java mavlink library, and usb serial project.
they're at the core of the rest of the system, as they handle connection, queuing, dispatching, and receiving of mavlink packets from the gcs to the vehicle (and vice versa).
Greg Parsons
@gregparsons
Jan 12 2016 04:37
Cool, thanks a lot. Sure appreciate all the work you've done tho!
Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 04:38
thanks!
tongzahub
@tongzahub
Jan 12 2016 17:08
sir . I have Question
this morning I test waypoint drone 2 point But between 2 point Drone has problem
this Drone Change mode Guided to Loter Drone downgraded altitude
I Check Misstion non the problem in waypoint
the problem in hardware or software
Fredia Huya-Kouadio
@ne0fhyk
Jan 12 2016 17:31
@tongzahub I'm not sure i fully understand the question. Could you provide a video or screenshots highlighting the issue?