From 4578b8cdcc17380645870b64b49d4a96bdba621a Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 2 Nov 2020 12:44:14 -0500 Subject: [PATCH] Update submodule ecl to latest Mon Nov 2 09:57:32 EST 2020 - ecl in PX4/Firmware (f87b19f31b9918f73d336d10e68d39c659037582): https://github/commit/48a8992caf7a95e09a5e17235133894c072b96bd - ecl current upstream: https://github/commit/a21092804a784d012939f96cc633e7da5f5e8cde - Changes: https://github/compare/48a8992caf7a95e09a5e17235133894c072b96bd...a21092804a784d012939f96cc633e7da5f5e8cde a210928 2020-11-01 Daniel Agar - EKF: remove virtual getters from estimator_interface --- src/lib/ecl | 2 +- src/modules/ekf2/EKF2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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