Get real time parameter from mavlink

I’m working on a autonomous drone and i’ve pixhawk 2.4.8 with BAROMETER and 2 IMU im not using any GPS.
Now, i want to get parameter at real time by pixhawk through mavlink so that i can use the altitude given by BAROMETER in my code…
Please help regarding this…


You keep requesting help for the same subject under different threads.
Please do your homework, do the basic stuff like making theses examples work:

Once you have mastered theses, you can ask for help on specific question regarding specific code of yours with the associated code being presented and test being done and demonstrated. This is the only way we can help you, there are lot of knowledgeable and proficient people here, but don’t waste our time begging for help, otherwise you can be flagged as spam and be blocked or banned.