Altitude from companion computer as Z measurement using using mavros

Hello, how to send through mavros only altitude readings and what are the parameters needed to make pixhawk takes it as the reference for stabilization and which topic to publish to