From b3841e5ea58f6052cd582825d9180ba50a517c74 Mon Sep 17 00:00:00 2001 From: Emmanuel Roussel Date: Fri, 15 Apr 2016 11:06:51 +0200 Subject: [PATCH] ran astyle --- src/modules/land_detector/MulticopterLandDetector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/land_detector/MulticopterLandDetector.cpp b/src/modules/land_detector/MulticopterLandDetector.cpp index 0a7387624a..ecc795055d 100644 --- a/src/modules/land_detector/MulticopterLandDetector.cpp +++ b/src/modules/land_detector/MulticopterLandDetector.cpp @@ -128,8 +128,8 @@ bool MulticopterLandDetector::get_freefall_state() const uint64_t now = hrt_absolute_time(); float acc_norm = _ctrl_state.x_acc * _ctrl_state.x_acc - + _ctrl_state.y_acc * _ctrl_state.y_acc - + _ctrl_state.z_acc * _ctrl_state.z_acc; + + _ctrl_state.y_acc * _ctrl_state.y_acc + + _ctrl_state.z_acc * _ctrl_state.z_acc; acc_norm = sqrtf(acc_norm); //norm of specific force. Should be close to 9.8 m/s^2 when landed. bool freefall = (acc_norm < _params.acc_threshold_m_s2); //true if we are currently falling