Adding a new mode to ArduPlane

Is there any documentation i can use that shows how to add a custom mode to ArduPlane.

It should be very similar to the procedure used for Copter:
https://ardupilot.org/dev/docs/apmcopter-adding-a-new-flight-mode.html

1 Like

I followed that procedure before but was unable to find my mode in the available modes list when i ran the “mode” command. I tried to find the solution to that problem but no matter what i did i couldn’t do it. So i figured delete everything and start from scratch by following the right documentation if that exists.

Are you talking about a mode list in some GCS?
That’s a separate issue.
Did you try selecting your mode using its mode number?

1 Like

“Are you talking about a mode list in some GCS?” I think yeah, there were modes like AUTO, LOITER etc. “Did you try selecting your mode using its mode number?” I did not try this. Maybe I should follow that procedure again and try what you said. But it seems like there is no Plane specific documentation on the internet. Am I correct?
Sorry for any complications on my clarifications to my problem btw I am very new to this stuff and tasked to add a new mode to ArduPlane.

I’m not aware of any plane specific procedure, but the copter one is pretty complete.
Did you read steps 6 and 7 of the procedure?
A quick search of the forum for “add new mode” turns this up:

1 Like

I redid everything by following that procedure including steps 6 and 7. (Couple of errors showed up after running “sim_vehicle.py --console --map -w” command but i managed to solve them with the assist of chatgpt.) Again my mode doesn’t show up on the available modes list. You said “Did you try selecting your mode using its mode number?”. Should I run “mode 26” where “26” is the enum number of my mode?

Using the mode number should work.

1 Like

When I run “mode 26” and hit enter a couple times after it, I get these outputs.
image
does that mean i succesfully added the mode?

Yes, mavproxy is showing the current mode as “Mode(26)”, just like it showed “MANUAL” before.

1 Like

I cannot see my mode on the modes list in mission planner even though I added it to the parametermetadatabackup.xml file

I’ve never tried to add a mode to Mission Planner, but I’m sure others have.

1 Like