Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having Issue starting mission #197

Open
Ba0Nguyen opened this issue Jan 3, 2025 · 3 comments
Open

Having Issue starting mission #197

Ba0Nguyen opened this issue Jan 3, 2025 · 3 comments

Comments

@Ba0Nguyen
Copy link

Sometime I have problem where I can't start a mission even thought a mission is uploaded. Error message gives me an UNKNOWN reason to why it failed to start the mission. If I keep sending start mission command, eventually MavSDK will start the mission. This might take somewhere around 5-10 tries to get the mission to start.

@Ba0Nguyen
Copy link
Author

I run this with Ardupilot 4.4.4 and MavSDK v2.0.1, should I update to a newer version of MavSDK?

@JonasVautherin
Copy link
Collaborator

JonasVautherin commented Jan 3, 2025

Hmm that's weird. Starting a mission is "just" about changing the mode, which is done here.

For Ardupilot, the conversion is done here. See how it calls a different function depending on the vehicle: flight_mode_to_ardupilot_rover_mode, flight_mode_to_ardupilot_plane_mode, flight_mode_to_ardupilot_copter_mode.

I see that FlightMode::Mission is defined for copter and plane and rover, so I don't understand why it would return Unknown 🤔.

Are you able to try from MAVSDK in C++? Just to be sure?

@julianoes
Copy link
Contributor

MavSDK v2.0.1, should I update to a newer version of MavSDK?

Yes, you should. That's the first step to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants