added location error calc to get better data. Otherwise we'll be 1 GPS read off.

This commit is contained in:
Jason Short 2012-01-09 16:57:39 -08:00
parent 5f55780b5e
commit b1e971ea18
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ static void set_next_WP(struct Location *wp)
target_bearing = get_bearing(&prev_WP, &next_WP);
nav_bearing = target_bearing;
// calc the location error:
calc_location_error(&next_WP);
// to check if we have missed the WP
// ---------------------------------
original_target_bearing = target_bearing;