Config file for parameters

Hi community,

Im really interested in getting some sort of config file setup that i could load in either with MavLink messages or an embedded Lua script that will have my preferred parameters, rather than each time loading mission planner and going through the config setup, being able to have this file with the right parameter indexes ready to go.

i’ve seen the instructions here
https://ardupilot.org/copter/docs/common-scripting-parameters.html
so know this should be possible with a lua script that lives on the autopilot, but wondering if there is a neater way?
Perhaps with a MavLink message (i use pymavlink) that grabs a config file and sends a
[PARAM_REQUEST_LIST]
[PARAM_SET]
But i don’t know how to actually construct those in pymavlink as can’t find any examples!

Maybe too much for this topic but on a similar vein, id like to be able to have a joystick mapped to servo channels in a similar manner, with a config file that (for a specific controller) maps the right servo channels to the right buttons id like to set, again without the need to go onto mission planner and manually set up the controller/joystick.

Save the subset of parameters to a parameter file.

Load it into Mission Planner and write the values.

Doesn’t get much easier than that.

And if you are using a joystick connected via Mission Planner, MP saves the joystick profile after it’s configured. You shouldn’t have to do it again.

Hi @Yuri_Rage
Thanks so much for the reply!

I probably didn’t explain very well, im exploring a solution that doesn’t require mission planner at all, i have the need to be able to essentially auto load a predetermined parameter set when connected to my rover via a custom app, over UDP connection (with mavproxy)
The idea being i could have say, three config files each with a different combination of parameters, that i can select a single file, and this file is loaded to the autonomy kit, does that make more sense? Like an auto config page in mission planner, but in my app instead?