You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is takeoff called here? I saw that takeoff is set in the create_mission_raw function. For APM, do you need to set takeoff in the mission and also call takeoff outside? Why?
#2288
"I tried both with the APM SITL simulator and a real drone. If there's no TAKE_OFF command in create_mission_raw, it won't take off. Also, keeping the TAKE_OFF command in the mission plan without explicitly calling the takeoff function won't make it take off either."
If that's the case, it's fine as long as it can take off and execute the mission. After all, the MAVSDK's compatibility with APM isn't perfect. Now, I'm facing another issue where I can't execute multiple mission plans. For instance, if I upload a mission plan and it finishes executing, then I upload another one, the second mission plan doesn't execute. There are no error reports; the drone just keeps hovering at the end of the first mission's route.
Yes, later I found that setting set_current to 0 after uploading a new mission allows the new mission to take effect before the completion of the first mission. However, if the first mission has already been completed and a new mission is uploaded afterward, the new mission still may not execute. Then, I set the command of the last mission_item in the first mission to MAV_CMD_NAV_LOITER_UNLIM. This allows the second mission to execute seamlessly.
MAVSDK/src/integration_tests/mission_raw_import_and_fly.cpp
Line 127 in 849cb9a
The text was updated successfully, but these errors were encountered: