From e5994c578aea0cad76f537391e5529ec0a24a1b4 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Tue, 3 Jan 2012 22:43:54 -0800 Subject: [PATCH] removed unused vars --- ArduCopter/commands.pde | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduCopter/commands.pde b/ArduCopter/commands.pde index b5e2ab09fe..e5b6fe7a3c 100644 --- a/ArduCopter/commands.pde +++ b/ArduCopter/commands.pde @@ -158,8 +158,7 @@ static void set_next_WP(struct Location *wp) // this is handy for the groundstation // ----------------------------------- - wp_totalDistance = get_distance(¤t_loc, &next_WP); - wp_distance = wp_totalDistance; + wp_distance = get_distance(¤t_loc, &next_WP); target_bearing = get_bearing(&prev_WP, &next_WP); nav_bearing = target_bearing;