C++ SDK for ANAFI

It looks like the ANAFI requires the Mavlink component it is communicating with to be issuing a regular heartbeat. Now that I have that in place I am getting the data I need.

A few more related flight control questions on Mavlink:

  1. What command sequence is required to get the drone to takeoff? I have found that it does not seem to respond to an ARM followed by a MAV_CMD_NAV_TAKEOFF and I believe it is because it does not ARM. Do I need to be in a certain mode for ARM to take effect? All I got from the docs is “drone must be armed to react” however I am trying to arm it…

  2. How can I switch modes? The SET_MODE command does not seem to have any effect. I have tried switching to an autonomous mode so I can send MAV_CMD_DO_REPOSITION but can’t seem to get it in any mode other than POSCTL - this is also from the SkyController; nothing seems to get it to leave POSCTL mode.

  3. Any other guidance on the nuances of Mavlink control of the ANAFI?

@vegovs, have you learned anything in your tests with the simulator? I haven’t had any luck getting the simulator running at all since I don’t have access to a Ubuntu 18.04 box and VM is out of the question, so I’d love to hear your thoughts!

Thanks all!

I suggest you download and use QGroundControl , it works with Anafi and that will let you see the command sequences.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.