bitcraze / crazyflie-android-client

The Crazyflie Nano Quadcopter client for Android OTG or BLE enabled devices
GNU General Public License v2.0
103 stars 118 forks source link

Keep the app and the drone connected in background #64

Closed qhelaine closed 7 years ago

qhelaine commented 7 years ago

I put a camera on the drone and watch the video on a webcam app on my phone with a Rx receiver plug on the usb port, but I can't pilot the drone and watch the video at the same time thanks to two different applications. I control the drone thanks to ps4 controller. So when I minimize the crazyflie app, the drone is disconnected. So I want to know if it's possible to keep connected the crazyflie app in background (and keep the drone connected, when I use the gamepad) and use another app at the same time in front like webcam app to see in fpv? Or it is possible to modify the crazyflie app and add a video player and resolve the problem of connection in this case?

ataffanel commented 7 years ago

I did some quick search and I am not sure it is possible to keep the gamepad input while being in the background. Do you have any insight on that @fredg02.

One solution is to use the split-screen capabilities of Android Nougat. I just tested and it works looking at a youtube video at the same time as controlling the Crazyflie with a bluetooth controller. You get only half of the screen but at least it works out of the box.

fredg02 commented 7 years ago

Sorry for the late reply. Like Arnaud said, there does not seem to be a way to capture gamepad input while an app is in the background. It might be possible, but I'm not planning to add a video player to the Crazyflie app anytime soon (I will consider pull requests though). So I'd recommend to try out the split-screen "workaround" for now.

qhelaine commented 7 years ago

Hi ! Sorry for the late reply too. I think I will try this solution for now and I will share you that I will reach to do. Thank you both. I'm really not an expert in programation but if I find a program who can keep working the crazyflie app in background, I will tell you.

Regards,

Quentin.

Le 28 mars 2017 01:48, "Fred G" notifications@github.com a écrit :

Sorry for the late reply. Like Arnaud said, there does not seem to be a way to capture gamepad input while an app is in the background. I'd also recommend to try out the split-screen "workaround" for now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitcraze/crazyflie-android-client/issues/64#issuecomment-289613423, or mute the thread https://github.com/notifications/unsubscribe-auth/AZPZj6NIDSXfyJ0Sx5XVMj7ZqzzoiDuRks5rqEIugaJpZM4MfqRC .