How to subscribe to UORB topics exchanged between QGroundControl and Pixhawk?

Hello everyone,

I’m currently working on building a Pixhawk-based autonomous rover. The initial setup with the Rover firmware on a Pixhawk 6C went smoothly, but I’ve run into a challenge: my motor drivers use the FOC (Field-Oriented Control) protocol, and it seems that Pixhawk doesn’t have direct/native support for it.

My idea was to integrate a Raspberry Pi as a companion computer, with the plan to subscribe to the topics exchanged between QGroundControl and Pixhawk, and then channel those commands to the FOC-based motor drivers.

Has anyone here tried something similar—either connecting FOC-controlled motors with Pixhawk, or working with the MAVLink/QGC topics for custom motor control?

Any guidance, experiences, or suggestions would be greatly appreciated!
Thanks in advance for your help.