Copter: circle mode uses AC_Circle get_distance_to_target

This commit is contained in:
Randy Mackay 2018-03-28 11:10:13 +09:00
parent 9de73a994f
commit acfc3a606a

View File

@ -97,12 +97,12 @@ void Copter::ModeCircle::run()
uint32_t Copter::ModeCircle::wp_distance() const uint32_t Copter::ModeCircle::wp_distance() const
{ {
return wp_nav->get_loiter_distance_to_target(); return copter.circle_nav->get_distance_to_target();
} }
int32_t Copter::ModeCircle::wp_bearing() const int32_t Copter::ModeCircle::wp_bearing() const
{ {
return wp_nav->get_loiter_bearing_to_target(); return copter.circle_nav->get_bearing_to_target();
} }
#endif #endif