I tried the MAVROS local position reading. I moved the drone by hand. Everything other than the x and y component of position is changing. Any help??
Do you have something that would enable the estimator to initialize and estimate a position, e.g. a GPS or PX4Flow?
Yes. It has a GPS!
is there a topic to directly subscribe to GPS data?
And do you have proper GPS signal and a 3D lock?
Are you doing a arming?
Yes, I tried arming and disarming multiple times.
I am getting lat long in global_position/raw/fix.
But nothing in global_position/global
The issue might be with the sensors you fuse into the EKF. We had a similar issue when one of our 2 IMU was broken, it worked when we disabled its components (acc, gyro, mag).