removed unused vars

This commit is contained in:
Jason Short 2012-01-03 22:43:54 -08:00
parent 8ed2d96396
commit cf9e744ed2
1 changed files with 1 additions and 2 deletions

View File

@ -158,8 +158,7 @@ static void set_next_WP(struct Location *wp)
// this is handy for the groundstation
// -----------------------------------
wp_totalDistance = get_distance(&current_loc, &next_WP);
wp_distance = wp_totalDistance;
wp_distance = get_distance(&current_loc, &next_WP);
target_bearing = get_bearing(&prev_WP, &next_WP);
nav_bearing = target_bearing;