Copter: remove logging dependency on optflow

This commit is contained in:
Randy Mackay 2014-12-31 02:31:16 +09:00
parent b016bae445
commit 3e34e7ed7e

View File

@ -491,7 +491,11 @@ static void Log_Write_Attitude()
DataFlash.WriteBlock(&pkt, sizeof(pkt));
#if AP_AHRS_NAVEKF_AVAILABLE
#if OPTFLOW == ENABLED
DataFlash.Log_Write_EKF(ahrs,optflow.enabled());
#else
DataFlash.Log_Write_EKF(ahrs,false);
#endif
DataFlash.Log_Write_AHRS2(ahrs);
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL