ArduCopter: move get_bearing_cd to Location and rename to get_bearing_to

This commit is contained in:
Pierre Kancir 2019-04-05 15:02:44 +02:00 committed by Peter Barker
parent 007d317741
commit 5987966ac6
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ uint32_t Copter::home_distance()
int32_t Copter::home_bearing() int32_t Copter::home_bearing()
{ {
if (position_ok()) { if (position_ok()) {
_home_bearing = get_bearing_cd(current_loc, ahrs.get_home()); _home_bearing = current_loc.get_bearing_to(ahrs.get_home());
} }
return _home_bearing; return _home_bearing;
} }