Adding new channels to Rascal for SITL with Jsbsim

Does anyone know how I can add new channels to the Rascal Jsbsim model? Currently it looks limited to 4 channels on ArduPlane.

Thanks

Answering my own question: The edit has to be done in the

JSBSim::send_servos function

under

You can give any name to the new ArduPilot internal variables but they have to be intelligently assigned to the chosen jsbsim variables, else the mavproxy fails to start and connect properly thinking that there is a new firmware being built.

The maximum number of channels is 8. It looks like channel 8 is reserved for flight mode assignments.