How to add a parameter to quadplane code?

I’m currently hacking away at the Quadplane code to make it do a bi-copter with tilt wing and rotors and I would like to add an extra parameter to specify the tilt limits for pitch control in the same way that is done for vectored yaw.

The parameter setup in Quadplane looks quite different to that described in the Copter add parameter notes and I’m having some difficulties getting functional code to compile so I think my problem lies here.

Could some kind soul point out the relevant Quadplane equivalents of the four-step Copter process?

(currently working in SITL at the moment but will migrate to the real world when something works)

maybe this will help: https://github.com/ArduPilot/ardupilot/pull/6005/commits/74a90901334674aa2ae45530935642a49e01bda1

Hey thanks Mark! There’s a few hints in there I need to try!