From b1e971ea18f184e90e5d9e46f7ca9227d0209cfd Mon Sep 17 00:00:00 2001 From: Jason Short Date: Mon, 9 Jan 2012 16:57:39 -0800 Subject: [PATCH] added location error calc to get better data. Otherwise we'll be 1 GPS read off. --- ArduCopter/commands.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/commands.pde b/ArduCopter/commands.pde index e5b6fe7a3c..c3f5c6243f 100644 --- a/ArduCopter/commands.pde +++ b/ArduCopter/commands.pde @@ -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;