From 896076690000d07859f4530d2afbeecbd95a5360 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 31 Dec 2014 12:24:01 +0900 Subject: [PATCH] Rover: remove logging dependency on optflow --- APMrover2/Log.pde | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/APMrover2/Log.pde b/APMrover2/Log.pde index eb0c68b4a9..8698ba361e 100644 --- a/APMrover2/Log.pde +++ b/APMrover2/Log.pde @@ -319,7 +319,11 @@ static void Log_Write_Attitude() }; DataFlash.WriteBlock(&pkt, sizeof(pkt)); #if AP_AHRS_NAVEKF_AVAILABLE - DataFlash.Log_Write_EKF(ahrs,optflow.enabled()) {); + #if OPTFLOW == ENABLED + DataFlash.Log_Write_EKF(ahrs,optflow.enabled()); + #else + DataFlash.Log_Write_EKF(ahrs,false); + #endif DataFlash.Log_Write_AHRS2(ahrs); #endif }