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

Unsupported Mission Commands from QGroundcontrol created mission #1778

Open
ankitatcodingnebula opened this issue May 19, 2022 · 2 comments
Open

Comments

@ankitatcodingnebula
Copy link

Hi MAVSDK Team,

Any mission created from QGroundcontrol throws "UNSUPPORTED mission item" error for few of the MAVLink Commands (MAV_CMD).
QGC mission creation adds the following MAV_CMD commands to the mission plan by default unless unchecked

  1. MAV_CMD_NAV_TAKEOFF (22 )
  2. MAV_CMD_SET_CAMERA_MODE (530 )

When Download Mission api is called MAVSDK throws error which can be seen on mavsdk server console


[04:36:45|Debug] Assembling Message: 0 (mission_impl.cpp:612)
[04:36:45|Error] UNSUPPORTED mission item command (530) (mission_impl.cpp:743)

Looking at DownloadMissionCallback of mission_impl.cpp these commands are not part of the if else condition. Could you please confirm if there is a reason these have been left out? Is there any workaround to fix the UNSUPPORTED error on download mission?

@JonasVautherin
Copy link
Collaborator

I guess they should be added to the mavsdk mission plugin? Would you be willing to contribute that? 😊

@julianoes
Copy link
Collaborator

@ankitatcodingnebula thanks for the note.

First off: the mission plugin only supports a subset of commands. If you need all possible commands/mission items, you need to use the MissionRaw plugin instead.

Now, for your specific commands, I can see how it would be nice to have support for them:

  1. MAV_CMD_NAV_TAKEOFF: there is work in progress to add support for this, see: New vehicle action  #1628.
  2. MAV_CMD_SET_CAMERA_ACTION: given we support taking photos and videos in CameraAction it would seem logical that we also implement/support switching between photo and video mode. It would be nice to add that capability. The first step would be to add it here: https://github.com/mavlink/MAVSDK-Proto/blob/0c4379fb476b41f5193de7cd602e24668c0fb268/protos/mission/mission.proto#L222.

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

No branches or pull requests

3 participants