Skip to content

How to store a set of waypoints for AUTO mode #11

@stephen-t-dodds

Description

@stephen-t-dodds

Hi,

Mavlink allows you to set a group of waypoints to be executed by AUTO mode by using the "set waypointfile.txt" command.

Have you created a function that emulates the "set" command so that waypoints can be saved to the drone? I looked extensively in your documentation and I have not found anything that resembles this command.

I did notice that in small_demo.py you have access to the waypoints that are already set using cmds[x] structure:

cmds = v.commands
cmds.download()
cmds.wait_valid()
print "Home WP: %s" % cmds[0]
print "Current dest: %s" % cmds.next

However, you cannot save to the cmds[x] structure, you have only given access to printing the contents (at least as far as my experimentation has shown me).

If there is not such a function in droneapi yet, would you please make one? I do not mind making the text file if you could make some sort of function that "sets" the text file as the waypoints. However, It would be even more nice if you had a way to just "set" waypoints into the AUTO mode list using some sort of structure.

Thanks,

Stephen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions