ArduCopter: move location_update to Location and rename to offset_bearing

This commit is contained in:
Pierre Kancir 2019-04-05 08:11:27 +02:00 committed by Peter Barker
parent 58cd9361cb
commit 4cec958269
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ bool Copter::ModeFollow::get_wp(Location &loc)
float dist = g2.follow.get_distance_to_target();
float bearing = g2.follow.get_bearing_to_target();
loc = copter.current_loc;
location_update(loc, bearing, dist);
loc.offset_bearing(bearing, dist);
return true;
}