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

  • In fact now tat i think about it you are correct , sorry about that, i did rite my previous comment at 1AM 

    It would be nice to have a mix, so altitude in meters but speed in MPH

  • Developer

    @Jared: If you have to write "not being rude" but seriously, the next statement is probably better kept to yourself.

    North America is one of the biggest markets (Canada and US ~400million people combined), so support for Imperial measurements seems like a valid request. It's not archaic, just a different. And measurement is not all black and white SI or Imperial. Have you converted your english car to kilometres only? Or are you still using mph? Do they still sell timber in 1.8m lengths (metric 6Ft). If you want to state an opinion, please do. "get with the times dude" is not a critical reasoning or polite. In Canada we (I say we but I am english and canadian!) use both SI and Imperial just the other way round. Building is Imperial and speed in the car is kph. (unlike the UK which is SI and mph ;-) )

    I don't buy using imperial measurements as causing issue. Just ask somebody whose cut something short by incorrectly measuring, it's still short whether they did cm or inches. As long as the operator has been trained on a system, with the correct safety procedures, the type of measurement unit is not going to matter. And the fact that NASA didn't have the correct checks and processes in place to avoid a mixup is a statement of poor management over sight and poor test coverage, not a problematic unit of measurement.

  • @Adma, lear SI units, i do not see why the whole world should conform to America's archaic units.

    Not being rude but seriously get with the times dude!

  • Developer

    @Adam: Maybe I'm missing the obvious, but is there an option to use non-metric units?

    I'm an SI guy, that's way it only has SI units. I think that adding option for other system would generate confusion. But if you care to add the issue to github I'll implement when I get the time.

    The main trouble is ensuring that the new units are used consistently trough the program, and I don't want to be responsible by a damage in someone drone.

    World’s Strangest | The Quick 6: Six Unit Conversion Disasters
  • Maybe I'm missing the obvious, but is there an option to use non-metric units?

  • I am using an XBee / Bluetooth bridge, and wondered if I could plug my XBee USB adapter directly into my tablet.  I did and it worked instantly.

    ASUS Transformer TF-101

    XBee Explorer Dongle - WRL-09819

    XBee Pro Series II

    I would still prefer to have a Bluetooth connection, though.  Great work - I can't wait to try it out/

    09819-05_i_ma.jpg

  • TESTS on v0.7.5 (from github)I´ve tested this version on mu NEXUS 7 and 3DR link. See this video showing new performances including GUIDED mode.

    In summary, much more stable. Works very well all modes tested.

    Small bug in GUIDED. You need to introduce a new altitude each time you play a new GUIDED point. That is, although it remember last altitude, after a guided run and trying a new guided point, sometimes  it remains in the point until a new altitude change is introduced.

    Again, thanks and congratullations to Arthur.

  • Developer

    @Angel

    Version 0.6.0 is a lot more stable. I'm working right now in implement support for arducopter (as I got a hexa to fly now), the v0.7.0 should be out soon.

    The new plane is thanks to user Jared Reabow, how is doing some UI graphics for the project.

  • @Arthur:

    I´ve giving a try to your last update v0.6.0.

    Thats really nice. It solved all crash problems when changing the screen. Also loved  the new plane look.

    I´ve tesded several modes (Stabilice, RTL, AUTO missions: all worked fine.

    This link to see my page with a detailled test on previous release

    Angel

  • Im want to develop simple ground station where include of google map, gps compass and a few of gauge aviation tools.

This reply was deleted.