Developer

Hello everyone,

I'm starting a new project branch for the ArduPilot, and I hope it will thrive. For an experiment run the DroidPlannerv0.1b.apk file on an Android Tablet (needs android v4) . Here it's a mere screenshot:
3689498250?profile=original

I know this it's not the first phone/tablet GCS to show up on this community (for example Bart copter-gcs, this closed-source copy, the Apple GCS by  Zachary), but I'm thinking in a different approach. This is what I want to do:

  1. Develop a GCS for android devices, mainly to setup missions before flights.
  2. And to analyze logs on the field afterward flights.
  3. Increase the App to add in flight telemetry.
  4. And PID adjustment controls.
  5. Keep supporting the system.
  6. Make this easy to use and functional, so that you won't need to turn on a computer to fly.

Some great things are helping on this project:

  • Google Maps Android API v2 - Which makes using Google maps in android applications more easily, and a lot faster. I also should point out that there is a nice cache function that makes it work offline (to some extent of course). But there is also the option of using a custom source of imagery.
  • Cheap Android Tablets with USB host capability's.

Screenshots:

Before getting into how I think this should evolve let me show to you what I have already done. Bellow is a screenshot of the home screen where the mission planning is made. On the left there is a list of waypoints altitudes, on the center a map with the home position. On the top left a menu to change the screen and on the right some commands relative to this screen.

3689498163?profile=original

On the next picture there are show some of the actions on the menu, and more waypoints where added (with a different altitude). Using the "open file" action to open a real flight get's us back to the first picture in the post. (Files are loaded from a folder named waypoints on the sdcard, you can copy files generated with mission planner to this folder)

3689498289?profile=original

Edit: I added one more screen to the DroidPlanner App, is the Ground Control Point (GCP) screen. It's function is aid in the positioning of control points on the field for photogrammetry applications.

The operation is simple:

  1. Load a KMZ or KML file from Google Earth with Placemarks where the control points should be.
  2. Lockup your location at the blue dot.
  3. Go to a GCP location at a Red dot
  4. Drop a GCP marker on the ground
  5. Click on the red dot of the GCP to turn it blue, to show that that place has been marked.
  6. If there are more red GCP then go back to step 2.

Here is a screenshot of the GCP screen with a KMZ file just loaded.

3689498312?profile=original

And this is after some GCP have been placed on the field and have been marked;

3689498180?profile=original

How it think it should evolve:

The part I'm procrastinating is the communication interface (mainly because Bart has made it already). I want to implement first a wifi-UDP communication system redirected by some main GCS, this way the development will be easier (the USB port will be free for the programmer) and a nice mobile GCS will be left behind. Next the USB-serial-Xbee communication, I have some working demos to receive data from the serial port but these need more study.

How to develop:

First get a clone from my branch "DroidPlanner_Stable" at this link. Next download the ADT Bundle for the google SDK and eclipse. Download and import the Google Play library into Eclipse as explained here. Now you should be able to import the DroidPlanner project/compile/ and run on a android device (needs Android v4).

Edit: About the USB connection to 3DR radios, some tablets have USB host capabilities and the drivers needed to communicate to a FTDI CDC IC.This means the device can supply power via USB and Acess USB devices, for me all it takes is an USB microB to USB type A cable (like the one in the picture).

otg_cable_640x360.jpg

To decrease the doubts about this here is a screenshot of my tablet connected to an APM1 board accessing the APM terminal. I used a terminal app called "Android USB Serial Monitor".

3689498329?profile=original

As I pointed out at the start there is this fileDroidPlannerv0.1b.apk, that can be run on a android v4 phone or tablet.

Edit: I only have one Chinese 7 inch Tablet, so I don't know how it will behave on other devices but it's worth a try. Some has run the App on a Nexus7. I had some doubts because of the API key need to access Google maps data was a debug one.

About android v2.x.x devices:

Edit: There seams to be a lot of questions about v2 android devices, these will not be supported. At least not on the initial releases. Because with android 2.X there would be some problems with the Google Maps API v2, and the communication drivers (since USB host mode is supported only on version>v3 devices). I know it would be great to support everyone but that is a lot of work. I think at least for the start just focus on android 3.1 or higher. this way we can use the latest version of the maps API and have USB support.

And an android v4 Tablet is very cheap now, and that's what I think should be targeted.

Any questions or suggestions post bellow. Any problems downloading or compiling the source contact me with a message on this post.

Thanks.

--

Arthur Benemann

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • Hello

    it works fine on samsung galaxy note 10.1

  • Developer

    Here is an interesting project: usb-serial-for-android. I would like to quote:

    No root access, ADK, or special kernel drivers are required; all drivers are implemented in Java.

    Ether way there is still the option to use the WiFi or Bluetooth modes (as soon as they are developed).

  • Damn, looks like i dont have cdc-acm drivers on my 10" tablet. Then i can forget usb support on my tablet :(((

  • No, its dmesg from shell.

  • Developer

    This is the logcat? How you dump it if you where using the USB port to connect to the APM?

  • Ok i found a new problem. When i connect the APM to my cheap 7" tablet it recognizes the APM an creates the ttyACM0 node that i can read from. But when i use my 10" tablet it recognizes the APM, but does not create a node:

    10":

    <6>[108244.964012] DWC_OTG: ^^^^^^^^^^^^^^^^^^Host Mode
    <6>[108244.968799] DWC_OTG: Init: Port Power? op_state=1
    <6>[108244.968810] DWC_OTG: Init: Power Port (0)
    <6>[108245.399005] usb 1-1: new full speed USB device number 20 using usb20_otg
    <6>[108245.615229] usb 1-1: New USB device found, idVendor=2341, idProduct=0010
    <6>[108245.622022] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    <6>[108245.629445] usb 1-1: Product: Arduino Mega 2560
    <6>[108245.634104] usb 1-1: Manufacturer: Arduino (www.arduino.cc)
    <6>[108245.639767] usb 1-1: SerialNumber: 64036353430351F02132

    and the 7" one

    usb 1-1.1: new full speed USB device number 5 using vc088x-ehci
    usb 1-1.1: ep0 maxpacket = 8
    usb 1-1.1: skipped 3 descriptors after interface
    usb 1-1.1: default language 0x0409
    usb 1-1.1: udev 5, busnum 1, minor = 4
    usb 1-1.1: New USB device found, idVendor=2341, idProduct=0010
    usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    usb 1-1.1: Product: Arduino Mega 2560
    usb 1-1.1: Manufacturer: Arduino (www.arduino.cc)
    usb 1-1.1: SerialNumber: 64036353430351F02132
    usb 1-1.1: usb_probe_device
    usb 1-1.1: configuration #1 chosen from 1 choice
    usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
    cdc_acm 1-1.1:1.0: usb_probe_interface
    cdc_acm 1-1.1:1.0: usb_probe_interface - got id
    cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
    usb 1-1.1: adding 1-1.1:1.1 (config #1, interface 1)
    drivers/usb/core/inode.c: creating file '005'

    Now the problem is i dont have the usb serial node on my 10" tablet, so i cant get any data from my APM. Is there a solution to this?

  • Developer

    Marcelo Gomes: Doesn't compatible with Android 2.2?

    No it isn't compatible.We discussed this on Comment Page 3. But when the project is more functional if anyone wants to support the 2v android they are welcome to try.


  • Arthur, well done!

    Doesn't compatible with Android 2.2?

    Thanks!

  • Hello,

    I am happy to see this new project.

    I'd like to connect my 3DR radio telemetry directly in my Samsung Galaxy S3.

    I'm sure it works because some people test it.

    They are using FTDI 232 driver.

    I found this on the net :

    http://www.ftdichip.com/Drivers/D2XX.htm

     

    If it can help to directly read 3dr module ^^

     

     

  • nice jobs

This reply was deleted.