Plane: Don't log EKF optical flow data if not required

This commit is contained in:
priseborough 2014-12-24 07:40:18 +11:00 committed by Randy Mackay
parent 9c8406998b
commit 195cdb6fd6

View File

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