MAVSDK-Java
MAVSDK-Java copied to clipboard
Having Issue starting mission
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.
I run this with Ardupilot 4.4.4 and MavSDK v2.0.1, should I update to a newer version of MavSDK?
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?
MavSDK v2.0.1, should I update to a newer version of MavSDK?
Yes, you should. That's the first step to try.