Skip to content

Commit 2ad9c58

Browse files
style(pre-commit): autofix
1 parent 84f242b commit 2ad9c58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

perception/autoware_map_based_prediction/src/path_generator.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,7 @@ FrenetPoint PathGenerator::getFrenetPoint(
462462
// assume it will continue accelerating (reckless driving)
463463
const bool object_has_surpassed_limit_already = v > speed_limit;
464464
if (terminal_velocity < speed_limit || object_has_surpassed_limit_already)
465-
return v + a * (1.0 / lambda) +
466-
(a / (t_h * std::pow(lambda, 2))) * std::expm1(-lambda * t_h);
465+
return v + a * (1.0 / lambda) + (a / (t_h * std::pow(lambda, 2))) * std::expm1(-lambda * t_h);
467466

468467
// It is assumed the vehicle accelerates until final_speed is reached and
469468
// then continues at constant speed for the rest of the time horizon

0 commit comments

Comments
 (0)