Pixhawk for Ground navigation

I would like to connect PIXHAWK to a ground vehicle, meaning to use the sensors found on the Flight Control (IMU, MAGNOMETER, BAROMETER) and the EKF found in the software package to obtain a location, is it possible? What hardware should I start with? Software package?
What if I have my own sensor card? Can I connect it to the PIXHAWK hardware?

It depends on what software and hardware is on the ground vehicle. What is the compute available is a good question to start with.

If you are running a microcontroller on the vehicle you could maybe go with mavlink (over serial or ethernet) or DroneCAN, as they are both lightweight. If you are running something like a computer with linux then you could do everything over ROS 2 (microdds on the pixhawk)

Let me know if you have any other questions.