Skip to content

Commit a5d564d

Browse files
zulfaqar-azmi-t4kyoichi-sugahara
authored andcommitted
fix(lane_change): fix prepare length too short at low speed (RT1-8909) (autowarefoundation#9735)
fix prepare length too short at low speed (RT1-8909) Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
1 parent e662620 commit a5d564d

File tree

1 file changed

+1
-1
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils

1 file changed

+1
-1
lines changed

planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ double calc_actual_prepare_duration(
417417
if (max_acc < eps) {
418418
return params.max_prepare_duration;
419419
}
420-
return (min_lc_velocity - current_velocity) / max_acc;
420+
return std::max((min_lc_velocity - current_velocity) / max_acc, params.min_prepare_duration);
421421
});
422422

423423
return std::max(params.max_prepare_duration - active_signal_duration, min_prepare_duration);

0 commit comments

Comments
 (0)