From ae830b44c49e11b8e7905f68a1c589edff83d3a0 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 15 Oct 2015 16:33:19 +1100 Subject: [PATCH] AP_AHRS: Make EKF2 PosDownDerivative interface follow coding conventions Updates arising from peer review. --- libraries/AP_AHRS/AP_AHRS_NavEKF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp index a2c6d6a37e..161a2a00ee 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp @@ -438,7 +438,7 @@ bool AP_AHRS_NavEKF::get_vert_pos_rate(float &velocity) case EKF_TYPE1: default: - EKF1.getPosDownDerivative(velocity); + velocity = EKF1.getPosDownDerivative(); return true; case EKF_TYPE2: