From 4afd9d110e90674ccad7e821347ab53b97ad1f79 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Tue, 3 Jul 2012 14:17:57 +0200 Subject: [PATCH] Don't zero the PIDs when the settings are updated. Fixes some quirks from using TxPID tuning. --- flight/Modules/Stabilization/stabilization.c | 1 - 1 file changed, 1 deletion(-) diff --git a/flight/Modules/Stabilization/stabilization.c b/flight/Modules/Stabilization/stabilization.c index b08a90076..43bb9b0d5 100644 --- a/flight/Modules/Stabilization/stabilization.c +++ b/flight/Modules/Stabilization/stabilization.c @@ -444,7 +444,6 @@ static float bound(float val) static void SettingsUpdatedCb(UAVObjEvent * ev) { - memset(pids,0,sizeof (pid_type) * PID_MAX); StabilizationSettingsGet(&settings); // Set the roll rate PID constants