Scratch FC build with PX4

I am building an FC from scratch, and want to know if PX4 will work on a custom flight controller?
I want to build the flight controller, build the ESC’s, and use a raspberry pi as a companion computer, for advanced options.
i would like to use PX4, MAVLink, and QGroundControl as the basic software, and am developing in MatLab. My question is this concept possible with these specifications and choices ?
Then i will choose apropriate hardware to facilitate the project.
Thanks.

I would recommend you to watch this video to get more information:

Thanks. I will look into it, ive started a smaller project for preparation.

How did this turn out? Did you make any progress on building your own FC I am looking at doing something similar. Thanks

Well lol, ive come into an issue with overall complexity. Ive simplified the electronics and am learning the coding for the project but the aeronautics and related electronic/code integration has been difficult. the biggest problem has been integration of systems and system attributes. Ive been on it for a year at least, and its going to be another year before any solid results become reality because of the technical details and minutiae inherent in the systems, sub-systems and related systems needed to develop a UAV, control station. The actual FC itself is a matter of “how much do you want to custom build” and how much can be incorporated form others accessible additions. At this point im still researching the project. It is feasible though, just a time consuming project. Thanks.