Browse Source

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

mission-4.1.18
Jason Short 13 years ago
parent
commit
b1e971ea18
  1. 3
      ArduCopter/commands.pde

3
ArduCopter/commands.pde

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

Loading…
Cancel
Save