From 834ac38841a27f6f85f247eed88b1c27c94de65a Mon Sep 17 00:00:00 2001 From: Chungkyeong Lee Date: Mon, 1 Feb 2021 16:17:29 +0900 Subject: [PATCH] fix condition in ekf2Check --- .../commander/Arming/PreFlightCheck/checks/ekf2Check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/Arming/PreFlightCheck/checks/ekf2Check.cpp b/src/modules/commander/Arming/PreFlightCheck/checks/ekf2Check.cpp index 33e673f5f7..ae4e57bdb4 100644 --- a/src/modules/commander/Arming/PreFlightCheck/checks/ekf2Check.cpp +++ b/src/modules/commander/Arming/PreFlightCheck/checks/ekf2Check.cpp @@ -90,7 +90,7 @@ bool PreFlightCheck::ekf2Check(orb_advert_t *mavlink_log_pub, vehicle_status_s & } else if (status.pre_flt_fail_innov_vel_horiz) { mavlink_log_critical(mavlink_log_pub, "Preflight Fail: horizontal velocity estimate not stable"); - } else if (status.pre_flt_fail_innov_vel_horiz) { + } else if (status.pre_flt_fail_innov_vel_vert) { mavlink_log_critical(mavlink_log_pub, "Preflight Fail: vertical velocity estimate not stable"); } else if (status.pre_flt_fail_innov_height) {