Surface tracking feature still working even after deactivation

I tried various methods, including changing SURFTRAK_MODE to 0, using an aux switch to turn it off, also tried to remove SurfaceTracking::update_surface_offset function within the various mode_xx.cpp files. However, I still have this feature in place, does anyone have possible solutions for this? Thank you in advance.

Did you try to disable USE_TERRAIN?

Thanks for the reply! However, I cannot seem to find the param USE_TERRAIN. I have uploaded a graph showing the surface tracking and the params used.


drone parameters.param (21.8 KB)