Adding waypoint in APM Planner 2.0

Hello to everyone,

Currently am working on some project with APM Planner and Linux, and I would like to add some waypoints for my mission. I know that there is a way to add a waypoint directly through  AMP Planner, but I would like to know where those waypoints are stored. I think they are in some of these files named waypoint, list etc.

https://github.com/ArduPilot/apm_planner/tree/7f6ed47238a6e2994709177fc3af6fd5238fdc1a/src/ui

But I would like to know how exactly they are added and how. If anyone know the answer on this question I would be very grateful to him.

Thanks in advance.

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

Join diydrones

Email me when people reply –

Replies

  • I have solved this problem.

    Thank you

  • If I would like to do it from my software without installing the GCS, how could I make that  plugin. I don't have much experience in this field, and a lot of things are pretty new to me, so I am very grateful on any help that I can get.

  • 1-you need a GCS if you want one, or you could just do it all from your software.

    2-mavlink protocal, basically the link I sent you, read up on mavlink.

    3-no (?) not sure what you mean

    4- you *may* use APM Planner and integrate your changes as a plugin

    or you may use mavproxy (a very modification-freindly GCS)...  there are lots of possibilities.

  • It sounds helpful. Let me see if I understood it well. I could do clicks on the map in the APM Planner. For example 2 points, after that GCS would see that I put those two points and after that it would generate others, which I could send back to APM.

    Things that I am now interested in are:

    1) Do I need to install GCS and link it with APM

    2) How they communicate

    3) Do I need to do some settings before I run them

    4) you told me that that I need to make a plugin. If you could be a little bit more specific about that

  • Sounds like maybe, just maybe, that you should connect and use the waypoint protocol directly:

    http://qgroundcontrol.org/mavlink/waypoint_protocol

    Then you could use GCS, do the GUI clicks as planned, upload, when your software saw the mission upload, it could generate it's own version, and upload that.

    APM Planner 2 is open source, so another - most likely simpler - method would be to make a plugin, or your own version that did it.

  • Thank you on your replay.

    I will try to explain to explain it. I am trying to generate waypoints trough AMP waypoint C++ files. I know that there is a way to add a waypoint by mouse double clicking on the map, and that we can save that waypoint in the text file. After saving that text file we can load it back in new mission. What I am trying to do is to add 2 point in thet way and to generate others through code. For example if I put one waypoint which is a home position and the other is position where I want my rover to go, I want to other 5 be generated by some rules between those two. I found that in file WaypointList.cc the waypoints are added through code in some list, and that they are added when we double click on mouse. I would like to change that code, that after I add one and the other waypoint, another 5 are generated by code and that they appear on the screen.

    I hope that I have explain it a little bit better.

  • It's very likely that I can help, but I don't understand what you are trying to accomplish.
    Maybe a more detailed description or a mock up can explain.
This reply was deleted.

Activity