From 5987966ac6b23dc625eee486ec6684081b2577a1 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Fri, 5 Apr 2019 15:02:44 +0200 Subject: [PATCH] ArduCopter: move get_bearing_cd to Location and rename to get_bearing_to --- ArduCopter/navigation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/navigation.cpp b/ArduCopter/navigation.cpp index 675a62c178..4d209a0788 100644 --- a/ArduCopter/navigation.cpp +++ b/ArduCopter/navigation.cpp @@ -23,7 +23,7 @@ uint32_t Copter::home_distance() int32_t Copter::home_bearing() { 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; }