From def17582c6d8397967ebdb096e249e0ab0c2d498 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 22 Aug 2017 12:14:37 +0900 Subject: [PATCH] Copter: integrate simpler Log_Write_EKF --- ArduCopter/Log.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ArduCopter/Log.cpp b/ArduCopter/Log.cpp index f4eac8ff99..7ffdf076ca 100644 --- a/ArduCopter/Log.cpp +++ b/ArduCopter/Log.cpp @@ -239,11 +239,7 @@ void Copter::Log_Write_Attitude() // Write an EKF and POS packet void Copter::Log_Write_EKF_POS() { - #if OPTFLOW == ENABLED - DataFlash.Log_Write_EKF(ahrs,optflow.enabled()); - #else - DataFlash.Log_Write_EKF(ahrs,false); - #endif + DataFlash.Log_Write_EKF(ahrs); DataFlash.Log_Write_AHRS2(ahrs); #if CONFIG_HAL_BOARD == HAL_BOARD_SITL sitl.Log_Write_SIMSTATE(&DataFlash);