Skip to content

Commit

Permalink
ackermann: fix RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
chfriedrich98 committed Sep 30, 2024
1 parent 8eebec0 commit d53ff22
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ void RoverAckermannGuidance::computeGuidance(const float vehicle_forward_speed,
_prev_wp(0), _prev_wp(1));
const float distance_to_curr_wp = get_distance_to_next_waypoint(_curr_pos(0), _curr_pos(1),
_curr_wp(0), _curr_wp(1));
const float distance_to_next_wp = get_distance_to_next_waypoint(_curr_pos(0), _curr_pos(1),
_next_wp(0), _next_wp(1));
// const float distance_to_next_wp = get_distance_to_next_waypoint(_curr_pos(0), _curr_pos(1),
// _next_wp(0), _next_wp(1));

// Catch return to launch
if (nav_state == vehicle_status_s::NAVIGATION_STATE_AUTO_RTL) {
_mission_finished = distance_to_next_wp < _acceptance_radius;
_mission_finished = distance_to_curr_wp < _param_nav_acc_rad.get();
}

// Guidance logic
Expand Down

0 comments on commit d53ff22

Please sign in to comment.