Running relay off pix hawk aux 2,3,4

Hi, I’m a student on a team working on a project and I’m trying to connect a relay to any pins 2-4. Aux 5 and 6 is taken and I’m trying to find out whether or not it is possible to connect anything in those spots and if so how. I’ve searched for a while now and can’t seem to find it. Any help and direction would be greatly appreciated.

Set BRD_PWM_COUNT to a lower number. The first n channels starting at aux1 will be configured as pwm, and the remaining may be used as relays. Redirecting...

See also the RELAY_PIN parameters: Redirecting...

Thank you very much for the fast reply. I was able to get the parameters in order, however I couldnt map the RELAY_PIN3 to the controller. I am using a logitech F310. How can I map the button to the controller if there isnt an option in the joystick configuration section for relay pin 3?

there is only support for 2 relays on the joystick right now.
How many relays do you need? You can change the RELAY1_pin parameter to the pin you want to use.