Android client with basic support for PS3 controller

Firmware/software/electronics/mechanics
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Android client with basic support for PS3 controller

Post by Surrender »

Good Morning!
I have a SGS2 (Samsung Galaxy S2) and I installed your app. No problem to change channel and connect to my my crazyflie over OTG USB and Crazyradio.
Then there is a bug which makes flying impossible: The pad (doesn't matter which mode is set) where the Yaw is changed, hangs after each change (hangs for 1-2s after each minimal move). Normally thrust is also on this pad so i can't control my crazyflie without damage. It also doesn't matter if I'm not connected to the crazyflie, the problem is static.

On the old android client i was able to change both pads without hang (lag).

Maybe you now something about this problem or you could check this. I'm used to fly with phone pads (Droidmote :D) so i want to fly without delay over the android client app. :)

Greetings
DesTinY
Member
Posts: 97
Joined: Sat Feb 09, 2013 5:18 pm
Location: Bünde, Germany

Re: Android client with basic support for PS3 controller

Post by DesTinY »

Hi derf,

i rooted my S3 and with the sixaxis App (~2€) now i'm flying totally wireless with my PS3 Controller and your CF App :lol:
It's so cool just to have the phone with OTG and CF dongle in the pocket and walk around during the flight 8-)

I have some suggestions for improvement:
1. Block the on screen Pads if any controller is detected or as preferences setup item
2. Screen off feature. Pocket mode.
3. Flight modes. Advanced Flight Control like PC Client (max angle, max thrust, x-mode)
4. Battery status. Visual bar graph, vibration alarm and sound/voice alarm.
5. Radio Link quality. Visual bar graph, vibration alarm and sound/voice alarm.
6. Console
7. Parameters tab
8. Flight timer

I hope to find some time to look in your code this WE and maybe start to work on some of the suggested points.

But until now really good job derf!
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Android client with basic support for PS3 controller

Post by derf »

@Surrender
I'll try to look into the lag problem, but so far I can't reproduce it.

@DesTinY
Yeah, there is still a lot to do.
Maybe you can add your suggestions as issues in the BitBucket repository, so they can be tracked better.
Looking forward to your contributions. :)
DesTinY
Member
Posts: 97
Joined: Sat Feb 09, 2013 5:18 pm
Location: Bünde, Germany

Re: Android client with basic support for PS3 controller

Post by DesTinY »

I added the suggestions in your BitBucket repository. Sorry for the many messages you have certainly received. :D
DesTinY
Member
Posts: 97
Joined: Sat Feb 09, 2013 5:18 pm
Location: Bünde, Germany

Re: Android client with basic support for PS3 controller

Post by DesTinY »

Hi derf,
you are great. You solve faster bugs as I can find new ones. :lol:
I hope you are not annoyed by my reports. :?
I'm just started to look in the app code and changed just a small thing :roll: but i hope i can contribute more in the near future! :D

You have greatly improved the CF android app in recent days. *thumbs up*

BTW: Don't forget to sleep and eat! (like me :lol: )
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Android client with basic support for PS3 controller

Post by Surrender »

Moin derf,
I can reproduce it with a SGS3 mini. With this phone it hangs on both virtual joysticks. Maybe it needs to much CPU resources.

Anyway, good work - but i couldn't test it really :)

Sent from my GT-I9100 using Tapatalk 4 Beta
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Android client with basic support for PS3 controller

Post by derf »

@DesTinY
Thanks for doing the QA for the Android app! I'll definitely have to add tests to catch
"late night coding"-bugs. ;)
About the invisible controllers: I'll probably add a new activity for external controllers.
Before that I need to get two-way communication working to actually have something
useful to show on the screen.

@Surrender
I reproduced the bug on a Samsung S2 phone of a colleague. So you're not alone. ;)
CPU speed should not really be an issue, because the S2 has the same CPU
(Dual-core 1.2 GHz Cortex-A9) as the Galaxy Nexus I'm testing on.
There is also not much calculation involved, as far as I know. Need to investigate more.
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Android client with basic support for PS3 controller

Post by Surrender »

Thanks for investigating.

I did not looked @the code, but maybe there is a problem when setting the value to send over usb.


Sent from my GT-I9100 using Tapatalk 4 Beta
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Android client with basic support for PS3 controller

Post by derf »

@Surrender
I finally fixed this nasty little layout bug...hopefully.

=> https://bitbucket.org/fredg02/crazyflie ... -06-25.apk

Please test and report back.
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Android client with basic support for PS3 controller

Post by Surrender »

I tried to test it but I'm now not able to connect to the crazyflie. I've set the channel to 40 (same as in my pc client setting and crazyflie firmware setting) but it seems to be not working properly.
I'll test it tomorrow evening if it is a problem with your changes or not.

But now there is no lag anymore and that is great!!
Thanks dude ;)

Good night.
Post Reply