mavlink / MAVSDK-Java

MAVSDK client for Java.
68 stars 40 forks source link

Unable to get flight mode #143

Open Zxr1230 opened 7 months ago

Zxr1230 commented 7 months ago

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

JonasVautherin commented 7 months ago

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

Zxr1230 commented 7 months ago

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.

JonasVautherin commented 7 months ago

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

Zxr1230 commented 7 months ago

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

JonasVautherin commented 7 months ago

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

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

Zxr1230 commented 5 months ago

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

JonasVautherin commented 5 months ago

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

Zxr1230 commented 5 months ago

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

JonasVautherin commented 5 months ago

It means the drone denied the command right?

Yes!

Zxr1230 commented 5 months ago

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.