Estimator not working in PixFalcon?

Hi guys, I am trying to do position control using pixfalcon as the flight controller in an optitrack system. I use the topic /mavros/mocap/pose to send the position to the pixfalcon which correctly reflects its actual position when I used rostopic echo.

However, when i used rostopic echo on /mavros/local_position/pose and /mavros/local_position/odom I was not able to get an accurate reading. The x position was in the order of e^-32 and y position in the order of e^-16.

I wanted to configure the parameter ATT_EXT_HDG_M to a value of 2 but wasn’t sure where to change its value.

Using rosservice call /mavros/param/get ATT_EXT_HDG_M yields me the following results,

success: False
value:
integer: 0
real: 0.0

Do anyone know what I am doing wrong here?

Any help would be greatly appreciated! Thanks!