Skip to content

Commit 6ab1312

Browse files
committed
AC_WPNav: we are at estination regardless of OA state
1 parent 8da681f commit 6ab1312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AC_WPNav/AC_WPNav_OA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int32_t AC_WPNav_OA::get_wp_bearing_to_destination() const
6565
/// true when we have come within RADIUS cm of the waypoint
6666
bool AC_WPNav_OA::reached_wp_destination() const
6767
{
68-
return (_oa_state == AP_OAPathPlanner::OA_NOT_REQUIRED) && AC_WPNav::reached_wp_destination();
68+
return AC_WPNav::reached_wp_destination();
6969
}
7070

7171
/// update_wpnav - run the wp controller - should be called at 100hz or higher

0 commit comments

Comments
 (0)