Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 19, 2023
1 parent d12c1da commit fa214fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ std::vector<PullOutPath> ShiftPullOut::calcPullOutPaths(
// calculate pull out distance, longitudinal acc, terminal velocity
const size_t shift_start_idx =
findNearestIndex(road_lane_reference_path.points, start_pose.position);
const double road_velocity = road_lane_reference_path.points.at(shift_start_idx).point.longitudinal_velocity_mps;
const double road_velocity =
road_lane_reference_path.points.at(shift_start_idx).point.longitudinal_velocity_mps;
const double shift_time =
PathShifter::calcShiftTimeFromJerk(shift_length, lateral_jerk, lateral_acc);
const double longitudinal_acc = std::clamp(road_velocity / shift_time, 0.0, 1.0);
Expand Down

0 comments on commit fa214fc

Please sign in to comment.