Skip to content
Snippets Groups Projects
Commit 695f12be authored by priseborough's avatar priseborough Committed by Randy Mackay
Browse files

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

parent 195cdb6f
No related branches found
No related tags found
No related merge requests found
...@@ -491,7 +491,7 @@ static void Log_Write_Attitude() ...@@ -491,7 +491,7 @@ static void Log_Write_Attitude()
DataFlash.WriteBlock(&pkt, sizeof(pkt)); DataFlash.WriteBlock(&pkt, sizeof(pkt));
#if AP_AHRS_NAVEKF_AVAILABLE #if AP_AHRS_NAVEKF_AVAILABLE
DataFlash.Log_Write_EKF(ahrs); DataFlash.Log_Write_EKF(ahrs,optflow.enabled());
DataFlash.Log_Write_AHRS2(ahrs); DataFlash.Log_Write_AHRS2(ahrs);
#endif #endif
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL #if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment