From 4cec958269fe780ca02bd2c2e6ff74152f34ee47 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Fri, 5 Apr 2019 08:11:27 +0200 Subject: [PATCH] ArduCopter: move location_update to Location and rename to offset_bearing --- ArduCopter/mode_follow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/mode_follow.cpp b/ArduCopter/mode_follow.cpp index 463accd1542..2896d26ac0d 100644 --- a/ArduCopter/mode_follow.cpp +++ b/ArduCopter/mode_follow.cpp @@ -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; }