Adding and properly embed a custom controller

I found this thread, but it does not really touch the topic on how I can suppress the output of the attitude & rate controller when I enabled my mode via the custom parameter.