From ee75f26edb1e416294e3f771fd9e02bea8ecf5a4 Mon Sep 17 00:00:00 2001 From: priseborough Date: Wed, 24 Dec 2014 07:40:40 +1100 Subject: [PATCH] Rover: Don't log EKF optical flow data if not required --- APMrover2/Log.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APMrover2/Log.pde b/APMrover2/Log.pde index effbb4baf7..eb0c68b4a9 100644 --- a/APMrover2/Log.pde +++ b/APMrover2/Log.pde @@ -319,7 +319,7 @@ static void Log_Write_Attitude() }; 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 }