Adding navigation controllers

Hey everyone,

I am currently working on a university project with a friend and we are trying to add 3 new navigation controllers to the Arduplane code.

We've created the library files, as children of the Navigation.h template and have managed to get to the point where we can go the Parameter list in Mission Planner and change the nav_controller parameter to select different controllers.

However, there are two things we need a bit of help with.

1. Although we can change controller by typing a number in manually, it would be nicer to have them as options in the drop down menu and we can't figure out how to  make this happen.

2. Each controller has tuning variables we'd like to be able to adjust on-the-fly, in a similar manner to selecting the L1 period value.

We have added k_param_**controller_name** for each controller and have tried adding a GOBJECT for each as well. The k_param adds fine, but adding the GOBJECT causes our Pixhawk board to hang while uploading.

If anyone could shed some light on our issues, it would be greatly appreciated.

Thanks in advance

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    MP pulls data from parametermetadata.xml

    if you update that it will reflect in MP.

    each time mp does an update though it is overwritten.

    as for 2. not my area.

    • Thank you Michael! I should clarify, that what I meant in 2. was that we would like a table of parameters to show up in Mission Planner for each controller, if that is possible?

      • Developer

        if you look into the xml file, you can add data for any parameter, and what there displayed values are.

         

        see if you can do what you need in there?

        • Hi Michael,

          Can I please ask another question? We have changed some of the log variables so as to be able to record custom variables. For example, instead of showing wp_dist, we have replaced wp_dist with a custom variable.

          In the status tab on MP, the variable value is correct, but the name is still wp_dist. We've changed the Mavlink.ino and Log.ino files. Is there an XML file, or something similar, that we can use to change the variable name that is displayed in the MP status tab?

          Thanks,

          Chris

        • will do, thanks again for your help!

This reply was deleted.

Activity