ArduCopter: move location_update to Location and rename to offset_bearing

This commit is contained in:
Pierre Kancir
2019-04-06 09:10:28 +11:00
committed by Peter Barker
parent 58cd9361cb
commit 4cec958269
+1 -1
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;
}