android client app

Firmware/software/electronics/mechanics
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

android client app

Post by atomicdog »

What state is the android client app in?
I want to help out with it, so I'm wondering which parts work and which parts don't.
6-DOF CF | wireless xbox 360 controller
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: android client app

Post by marcus »

Hi atomicdog,

Glad to hear that you want to help out! Currently it's nothing more than a proof-of-concept. If you install the apk and plug the Crazyradio (using an adapter) you will get a UI with two virtual joysticks that can be used to control the Crazyflie (at a hardcoded address). It works for flying but that's all it does (and it's pretty hard). Here's a picture of the setup/app

What we would really like in the future is:
  • An API similar to the one we have in Python for the PC where you can easily connect and use log/param to log data and change parameters in the Crazyflie. This also takes care of downloading the log/param TOC and makes sure that we replies back when requesting information.
  • An API for communicating and setting up the Crazyradio similar to the one we have today
  • A bit more advanced client app where you can select what Crazyflie to connect to from a list and maybe see some feedback using logging.
The code is located here if you want to have a look.

/Marcus
falstaff
Beginner
Posts: 2
Joined: Wed May 08, 2013 6:47 pm

Re: android client app

Post by falstaff »

Hi,

One more thing to do: Set the Crazyflie to channel 107, since its fixed in the source of the android app right now.

Due to lack of alternatives I flew the first charge using my Android phone. I have to admin, its pertty hard to control the Crazyflie using this method, I think its especially due to lack of physical response (e.g. you don't "feel" how far you pushed the stick. On a real controller, you have a way better feeling for that). And when you see the reaction, its already too late to react... :-)

Maybe there is better solution how to steer the Crazyflie using a phone? Using Sensors?...

falstaff
foosel
Expert
Posts: 175
Joined: Sat Feb 02, 2013 9:59 pm
Location: Obertshausen, Germany
Contact:

Re: android client app

Post by foosel »

falstaff wrote:One more thing to do: Set the Crazyflie to channel 107, since its fixed in the source of the android app right now.
Thank you! I was fooling around with the app the other day, it didn't work though (Crazyflie is set to channel 10), didn't find the time to investigate yet, you just saved my a bunch of time :) Just changed the source instead of the Crazyflie's setting, now it connects like charm... Now, flying with those on-screen joysticks on the other hand, that's indeed a whole different story :lol:

For anyone who wants to try this out as well but can or does not want to compile the client himself, I've uploaded my version of the compiled APK here, it's compiled against Android SDK 4.0 (API 14) and works fine on my Galaxy Nexus with 4.2.2.
Image
Also: AR.Drone 2.0 (RC-enabled thanks to self-soldered MiruMod) and Hubsan X4 H107
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

Re: android client app

Post by atomicdog »

falstaff wrote: Maybe there is better solution how to steer the Crazyflie using a phone? Using Sensors?...
That's what I'm thinking also. I want to try to use the accelerometer on the android for pitch and roll.
6-DOF CF | wireless xbox 360 controller
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: android client app

Post by marcus »

I agree it's pretty hard to control using the on-screen joysticks. If you do a test using the phone sensors I would really like to test it :D
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: android client app

Post by marcus »

greggius did a test with the accelerometer (using the android phone to simulate a joystick to the PC) in this thread.
greggius wrote:Yep, sure did. Flight performance with accelerometers is pretty good; I find it just a little bit harder than using an xbox controller, although I probably just need more practice.
I also find that it’s easier to spin out of control; need to remember to keep my hand steady.
Seems like the sensors might work better than the joysticks.

/Marcus
SuperDave42
Beginner
Posts: 23
Joined: Tue Feb 05, 2013 8:30 pm
Location: California, a
Contact:

Re: android client app

Post by SuperDave42 »

Might be able to get the 6Axis app on Android to map the PS3 controler analog sticks to the touch screen over BT and have the PS3 controller actually manipulate the Android CrazyFlie app. :shock:

Dave
Superluminal carbon fiber flying robots.
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

Re: android client app

Post by atomicdog »

Here's the apk for my first quick & dirty attempt at controlling the roll and pitch using the accelerometer. So far, It's not really much easier for me. I think it's partly because I'm using a tablet and not a phone. So, I'm interested in how it feels to people with phones.
6-DOF CF | wireless xbox 360 controller
mjc506
Beginner
Posts: 13
Joined: Wed Feb 20, 2013 1:41 pm

Re: android client app

Post by mjc506 »

Good work, feels much better for me :)
Post Reply