mirror of https://github.com/ArduPilot/ardupilot
added location error calc to get better data. Otherwise we'll be 1 GPS read off.
This commit is contained in:
parent
5f55780b5e
commit
b1e971ea18
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue