Servers by jDrones

Initial Parameters Calculator Plugin

Thanks for checking. I’ll update it with the warning. The success message box is a known bug, since I use the compare control from Mission planner and it does not differentiate a success or a canceled dialog :frowning:

Thanks, It is just a bit less powerful than a full blown compiled one, since runtime compiled plugins can be only single files, and use only libraries and packages that already come with Mission Planner. Single file restriction is only painful if you want a fancy form or gui.

Oh, and I’ve found some of those battery params dont exist until some form of voltage sensor is selected (even if it’s not calibrated) - hard to do anything about that but just putting it out there.

OK, Updated the file with some welcome message, prerequisites and a note about INS_GYRO_FILTER :slight_smile:

Looks good, thanks!


Just for info, if i wanted to do something like this:

would it be possible with a .cs script?

Any chance to get this integrated in the official MP release?

@Eosbandi, @xfacta, this is why AP is such a great project, the evolution of ideas and implementation of new ideas is amazing.

1 Like

@xfacta once I sort out the process for doing the Loiter tuning and pilot speed up/down inclusive of fail safe descents maybe adding a table for that could be handy for the future. I know there is correlation between weight of the aircraft, prop size and air mass displacement which can cause unsteady decent. So if we go down that path to give basic loiter braking and acceleration rates and decent speeds may help with an initial setup. < will discuss later :slight_smile:

This is really great! After reading this post and looking at your example I am now also playing with making custom C# plugins. Sometimes I make stupid C# syntax errors which causes the plugin not to load/start. Is there a way that I can see more details about the reasons a plugin failed to load?

You can see compiler errors in the console (enable console window on the help screen) and they also logged to MissionPlanner.log which resides in c:\ProgramData\Mission Planner directory. (note that the ProgramData directory is hidden by default).
I recommend to delete MissionPlanner log, start MP then press CTRL+P to check if your plugin is loaded. If not, close MP and check log, you will find plugin loading at the bottom of the latest log.

But you can use visual studio (community edition is free) to develop your plugin, you can use MissionPlanner.stats plugin as a template project. Once it compiles and runs then you can take the .cs code and put in the plugin directory (so no need to compile and create a dll…)


Thanks for sharing this! Enabled the console and now it’s much easier to debug!
These plugins are really powerful stuff! Spent less than half a day (mostly reading the MP code) on it and so far I could add another tab page to the Data window where I can now add all my custom experimental features :slight_smile:


Now also getting curious to try out the dll plugins…


@Jan_Swanepoel I would love to see some of these plugins a main feature of MP. The amount of amazing stuff that can come out of a little bit of time and someone that knows what they are doing is invaluable to projects like these.

If one (me), with moderate python knowledge would like to learn the basics of c# to start playing with .cs plugin, what would be your advice? Where should i start reading and learning?

The best book IMHO is : There is a new book coming out soon for C# 8.0, but you can start with the 7.0 and once you grab the understanding of c# code, you have to browse the MP source code…

I don’t understand the missionplanner.stat part, would you mind elaborate a bit?

Any progress getting this integrated upstream?

It is already in the master since end of Jun. If you update to latest beta you will get it.

Hey Andras
Where do yo find it in Mission Planner.
I have the beta…but not sure how to find it.

If the plugin is loaded, press ALT+A
To check the loaded plugins press CTRL+P

Servers by jDrones