Communicate stm32 with pixhawk

can any one here to help me out i am trying to get the values from pixhawk e.g pitch ,yaw etc … i am using cubemx \


kiel c library of mavlink … issue is that the values coming on watch are not accurate sometime - and high exponential values