mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: move location_update to Location and rename to offset_bearing
This commit is contained in:
parent
58cd9361cb
commit
4cec958269
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue