From 5d1df69f137cf89d321ec50e7bd5f1bdbab29d6a Mon Sep 17 00:00:00 2001 From: jasonshort Date: Tue, 11 Jan 2011 21:12:57 +0000 Subject: [PATCH] added reset I functions for new pids git-svn-id: https://arducopter.googlecode.com/svn/trunk@1484 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/Attitude.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduCopterMega/Attitude.pde b/ArduCopterMega/Attitude.pde index 77e39f294c..46ffa4a108 100644 --- a/ArduCopterMega/Attitude.pde +++ b/ArduCopterMega/Attitude.pde @@ -150,7 +150,8 @@ void output_rate_control() // Keeps outdated data out of our calculations void reset_I(void) { - pid_nav.reset_I(); + pid_nav_lat.reset_I(); + pid_nav_lon.reset_I(); pid_baro_throttle.reset_I(); pid_sonar_throttle.reset_I(); }