Guys, please tell me.
I have this situation.
At first I used MAVSDK version 1.4.17 from Sept 22 this year release. I tried loading the mission into Ardupilot. Loaded the mission into SITL Mission Planer, ArduCopter version 4.4.4. I did this successfully.
An example of a download is like in this attached file fly_mission.cpp. It worked with the release of MAVSDK 1.4.17. I use MissionRaw to load the mission into Ardupilot.
fly_mission.cpp (9.6 KB)
Then I switched to the main branch.
After the switch, when loading the mission into Ardupilot, at the stage of executing the mission_raw.clear_mission() function, I get the MissionRaw::Result::Timeout error. I commented out the mission_raw.clear_mission() function.
Next comes the execution of the mission_raw.download_mission() function like this:
auto download_result = mission_raw.download_mission();.
And in download_result I also get the error MissionRaw::Result::Timeout.
I tried to comment out everything related to cleaning and loading the mission from Ardupilot into my program. And when I try to upload a mission from my program to Ardupilot like this: auto upload_result = mission_raw.upload_mission(mission_items); in upload_result I get the same error MissionRaw::Result::Timeout.
Please tell me what I need to do to load the mission into Ardupilot while in the main branch that I uploaded to my program on December 13, 2023?