Interfacing 2 pixhawk modules to 1 raspberry pi

hello , I want to connect 2 pixhawk to 1 raspberry pi. the things i want this particular system to do is when i give command pixhawk 1 will operate while 2 will be off and vice versa I don’t have much experience in pi pixhawk interfacing. any suggestions and help for understanding what should i do or how should i proceed will be appreciated thank you

Hello

Yes that can be done using 2 x usb to serial to connect RPI to telemetry port of each FC and assigning different SYSID_THISMAV to each.

This is what we do for swarm
https://ardupilot.org/copter/docs/common-multi-vehicle-flying.html#multi-vehicle-flying

Thanks for suggestion i’ll look into it.

I have one more question.
can we put two ardupilot firmwares in one pixhawk?