Mission planner and mission_start mavlink message

Hi, I'm currently developing a Android GCS. I have a problem when use the mission_start mavlink message, which has this format (this message is encapsulated in a command_long):

<entry value="300" name="MAV_CMD_MISSION_START">
<description>start running a mission</description>
<param index="1">first_item: the first mission item to run</param>
<param index="2">last_item: the last mission item to run (after this item is run, the mission ends)</param>
</entry>

When I sent this message with the index of first waypoint in param_1 and the last waypoint in the param_2, my hex gets unstable. Because of this, I looked to the messages that Mission Planner sends. What Mission Planner does is sending the same message but sets the two param described above to 0, and the param_3 (of command_long) to 1, which is not specified in the mavlink messages.

Anyone knows why Mission Planner use this third parameter? I would appreciate your help.

Cheers,

Luis.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    mission planner never uses the command you have listed. can you refrence a function you are looking at

This reply was deleted.

Activity