We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46cfadb commit 413805aCopy full SHA for 413805a
control/autoware_pid_longitudinal_controller/src/smooth_stop.cpp
@@ -140,9 +140,9 @@ double SmoothStop::calculate(
140
// when the car is running
141
if (is_running) {
142
// when the car will not stop in a certain time
143
- if (time_to_stop && *time_to_stop > m_params.weak_stop_time + delay_time) {
144
- return m_strong_acc;
145
- } else if (!time_to_stop && is_fast_vel) {
+ if (
+ (time_to_stop && *time_to_stop > m_params.weak_stop_time + delay_time) ||
+ (!time_to_stop && is_fast_vel)) {
146
return m_strong_acc;
147
}
148
0 commit comments