I am building an autonomous boat. As a master steering system I wanted to use RC's radio, as a secondary I wanted to use Raspberry Pi. To choose the steering source I wanted to use one of the channels from the radio receiver - 1 would mean radio as a source, 0 - Raspberry Pi. To choose which system is in use I need electronic element to choose which PWM signal is forwarded. Is there already built electronic part to do such thing? I was thinking about preparing something by myself, with 2 AND gates and one XOR (as presented on the diagram below). The question is, if I indeed have to build it myself, will the gates be the good choice? I don't know if the PWM can be forwarded through a gate because of its high speed of changes (of the frequency)? I assume that it is relevant. Maybe there is a different, better solution?
I will be grateful for your help!