diff --git a/src/lib/ecl b/src/lib/ecl index 48a8992caf..a21092804a 160000 --- a/src/lib/ecl +++ b/src/lib/ecl @@ -1 +1 @@ -Subproject commit 48a8992caf7a95e09a5e17235133894c072b96bd +Subproject commit a21092804a784d012939f96cc633e7da5f5e8cde diff --git a/src/modules/ekf2/EKF2.cpp b/src/modules/ekf2/EKF2.cpp index aa5c849720..a06ec72184 100644 --- a/src/modules/ekf2/EKF2.cpp +++ b/src/modules/ekf2/EKF2.cpp @@ -743,7 +743,7 @@ void EKF2::Run() lpos.heading = Eulerf(q).psi(); lpos.delta_heading = Eulerf(delta_q_reset).psi(); - lpos.dist_bottom_valid = _ekf.get_terrain_valid(); + lpos.dist_bottom_valid = _ekf.isTerrainEstimateValid(); float terrain_vpos = _ekf.getTerrainVertPos(); lpos.dist_bottom = terrain_vpos - lpos.z; // Distance to bottom surface (ground) in meters