Hi everyone.
I am trying to perform mission flights using QGC. However, the vehicle is switching to mission mode. It says “Can’t switch to mission mode. No valid global position estimate”.
However, GPS is working fine. Position mode works fine. But the mission mode is not working at any case. Just two days ago, it was working fine with the same setup. I am using PX4 v1.16 and 5.0 version for QGC. Can anybody tell me what could be the problem?
Is it firmware problem or QGC?
Please HELP!!
@JulianOes can you please help?
No idea. Can you share a logfile? Best to record it from boot using SDLOG_MODE.
I have found the issue. When EKF2_HGT_REF is set to “Range Sensor”, the mission mode does not work. However, when it is set to “GPS”, the mission mode works fine. I am using Nano-radar NRA 15 as my primary range sensor and CUAV 9Ps RTK GPS.
But I do not know why this happens. Any guess?
Hm, so mission mode only works with a global position (think latitude, longitude) like GPS, it doesn’t support a local mode (think meters).
If that is the case, then what is the purpose for range sensor if we cannot use it?
The RangeFinder is used as a height reference to provide precise altitude data for autonomous flights, enabling accurate operation over uneven terrain.
Maybe convert local coords to global (e.g. in the companion computer) and send the values over mavlink? I haven’t tried it personally though.