modify crosstrack calc

This commit is contained in:
Michael Oborne 2011-11-13 08:25:24 +08:00
parent b3747ab10f
commit 31159a7e1b
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ static void update_crosstrack(void)
static void reset_crosstrack()
{
crosstrack_bearing = get_bearing(&current_loc, &next_WP); // Used for track following
crosstrack_bearing = get_bearing(&prev_WP, &next_WP); // Used for track following
}
static long get_distance(struct Location *loc1, struct Location *loc2)