Skip to content

Commit

Permalink
ControlManager: added safety margin for dynamic bumper distance
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Jan 25, 2024
1 parent c65b35b commit 539cf34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/control_manager/control_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6755,7 +6755,7 @@ void ControlManager::bumperPushFromObstacle(void) {
const double horizontal_t_stop = constraints.constraints.horizontal_speed / constraints.constraints.horizontal_acceleration;
const double horizontal_stop_dist = (horizontal_t_stop * constraints.constraints.horizontal_speed) / 2.0;

min_distance_horizontal += horizontal_stop_dist;
min_distance_horizontal += 1.5 * horizontal_stop_dist;
}

if (_bumper_vertical_derive_from_dynamics_) {
Expand All @@ -6774,7 +6774,7 @@ void ControlManager::bumperPushFromObstacle(void) {
const double vertical_t_stop = vert_speed / vert_acc;
const double vertical_stop_dist = (vertical_t_stop * vert_speed) / 2.0;

min_distance_vertical += vertical_stop_dist;
min_distance_vertical += 1.5 * vertical_stop_dist;
}
}

Expand Down

0 comments on commit 539cf34

Please sign in to comment.