From d2fd6c5ee58bb14a51bb86d20baa6ee6b03cf32a Mon Sep 17 00:00:00 2001 From: Jason Short Date: Tue, 13 Dec 2011 21:16:04 -0800 Subject: [PATCH] added loiter control to reset nav --- ArduCopter/Attitude.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/Attitude.pde b/ArduCopter/Attitude.pde index dc9a4325e1..3a51f2125e 100644 --- a/ArduCopter/Attitude.pde +++ b/ArduCopter/Attitude.pde @@ -193,6 +193,9 @@ static void reset_nav(void) g.pi_nav_lat.reset_I(); g.pi_nav_lon.reset_I(); + g.pi_loiter_lat.reset_I(); + g.pi_loiter_lon.reset_I(); + circle_angle = 0; crosstrack_error = 0; nav_lat = 0;