From 9b77260ebb1f25a333302ff4f9bad55e81a81fe0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 28 May 2015 13:54:50 +1000 Subject: [PATCH] Plane: disable PID logging on APM2 --- ArduPlane/Log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/Log.cpp b/ArduPlane/Log.cpp index 38ee5eb985..c7c8517f13 100644 --- a/ArduPlane/Log.cpp +++ b/ArduPlane/Log.cpp @@ -168,8 +168,10 @@ void Plane::Log_Write_Attitude(void) targets.z = 0; //Plane does not have the concept of navyaw. This is a placeholder. DataFlash.Log_Write_Attitude(ahrs, targets); +#if HAL_CPU_CLASS > HAL_CPU_CLASS_16 DataFlash.Log_Write_PID(LOG_PIDR_MSG, rollController.get_pid_info()); DataFlash.Log_Write_PID(LOG_PIDP_MSG, pitchController.get_pid_info()); +#endif #if AP_AHRS_NAVEKF_AVAILABLE #if OPTFLOW == ENABLED