So I had a setup where I had an R9DS RC receiver connected to a Librepilot CC3D with SBUS and I wanted to control two servos with an accessory channel switch on my transmitter. I needed the servos to trigger, but reversed to each other when I flipped the accessory switch on. I figured out it was pretty impossible to do on the CC3D, so here’s how I did it with an arduino nano. NOTE: The exact method I used only works when your receiver can output the channel on SBUS and PWM simultaneously, the arduino will listen to PWM.
Wire up 5v power to the arduino nano and servos
Wire the PWM channel to a digital input on the arduino
Upload this to arduino to see what the on/off PWM values for are by watching the serial window as you flip the transmitter accessory switch
Now you can determine what state the remote acessory switch is in with pulseIn. Here’s my use case: