MAVSDK-Java icon indicating copy to clipboard operation
MAVSDK-Java copied to clipboard

Having Issue starting mission

Open Ba0Nguyen opened this issue 11 months ago • 3 comments

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 avatar Jan 03 '25 16:01 Ba0Nguyen

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

Ba0Nguyen avatar Jan 03 '25 16:01 Ba0Nguyen

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?

JonasVautherin avatar Jan 03 '25 17:01 JonasVautherin

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

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

julianoes avatar Jan 05 '25 21:01 julianoes