mavlink / MAVSDK-Java

MAVSDK client for Java.
68 stars 40 forks source link

android-client example not connecting to simulated drone and crashing when pressing Takeoff or Land button #126

Closed iura1 closed 1 year ago

iura1 commented 1 year ago

Hi all, Does anyone have experience running the MAVSDK-Java android-client example? I can run it on the emulator in Android Studio but it is not connecting to Jmavsim Simulator, and it is crashing when I press land or takeoff button. I am using mavsdk_server built from sources. Please check the attached screenshots. Thx!

Screenshot from 2023-03-26 21-25-21 Screenshot from 2023-03-26 21-25-29

JonasVautherin commented 1 year ago

Please link the other posts when you post the same question on different places: https://discuss.px4.io/t/android-client-example-not-connecting-to-simulated-drone-and-crashing-when-pressing-takeoff-or-land-button/31383

What I answered there:

I think you have to check the networking there. Your emulator is (I believe) not on the host network (it has an IP like 10.0.2.2, something like that). So you’ll have to send mavlink from jmavsim to the emulated device somehow.

julianoes commented 1 year ago

Follow up over there, closing this.