mavlink/MAVSDK-Java

Unable to get flight mode

Zxr1230 opened this issue · 14 comments

I am trying to run the Mavsdk in the android-client example. The Android example app is installed in the Herelink ground controller. After connecting the drone, the app displays the flight mode unknown but the flight mode displayed by the drone is LOIT.
Thanks in advance!
image
image

Somehow I feel like I have seen that picture already. Did you open another issue somewhere else?

Somehow I feel like I have seen that picture already. Did you open another issue somewhere else?

That was in a post for the connection issue. After solving that issue, we continued to discuss it a little bit.

Does the rest work? E.g. do you get correct battery updates?

Does the rest work? E.g. do you get correct battery updates?

Thanks! I think it works. But when I press the take-off button, the app will crash.
image

But when I press the take-off button, the app will crash.

I guess it throws an exception. What does it say?

But when I press the take-off button, the app will crash.

I guess it throws an exception. What does it say?

Sorry for the late reply. I was working on something else. It doesn't throw any exception. The app just crashed and quit. Thank you!
image

Well the app probably crashes by throwing an exception, but you won't see that in the Android popup 😊. Did you check logcat?

Well the app probably crashes by throwing an exception, but you won't see that in the Android popup 😊. Did you check logcat?

Thank you! It said the command was denied. It means the drone denied the command right?
image
image

It means the drone denied the command right?

Yes!

It means the drone denied the command right?

Yes!

Thank you! What could be the issue that makes flight mode doesn't work? Can this app control the drone to fly directly? For example fly it higher or lower, forward or backward.