From 60cdbe771c07d8a8e62152de054830464c9ef9b1 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Fri, 29 Jun 2012 21:18:57 -0700 Subject: [PATCH] Circle_WP distance check fix --- ArduCopter/ArduCopter.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 727a83abe1..ad923451e1 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -2294,7 +2294,7 @@ static void update_nav_wp() next_WP.lat = circle_WP.lat + (g.loiter_radius * 100 * sin(1.57 - circle_angle)); // calc the lat and long error to the target - calc_location_error(&circle_WP); + calc_location_error(&next_WP); // use error as the desired rate towards the target // nav_lon, nav_lat is calculated