MP population of Flight Modes

Hi all,

I’ve created a custom flight mode in ArduPlane 3.0.1, and would like to be able change to that mode using the Mission Planner GUI. The wiki only says to raise a request in Mission Planner’s issue list to add a flight mode, but I would like to be able to do this myself.

I have the source code of MP, but after taking a quick look through the main suspect files, I wasn’t able to find anything about how MP populates the lists. Could someone point me in the right direction? Perhaps also to where MP defines the functions of the buttons on the Actions tab on the Flight Data page? MP version is 1.2.99, but I can update to 1.3.0 if it makes any difference.

I’ve tried creating a python script to switch to my custom flight mode, but it does not recognize the string of the flight mode (as expected).

Thanks in advance,


edit ParameterMetaData.xml

note. that file is overwritten on every MP update.