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 Aug 22, 2023
1 parent 80b9f4c commit 07c2737
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 210 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ class PidLongitudinalController : public trajectory_follower::LongitudinalContro
* @brief calculate velocity feedback with feed forward and pid controller
* @param [in] control_data data for control calculation
*/
double applyVelocityFeedback(
const ControlData & control_data);
double applyVelocityFeedback(const ControlData & control_data);

/**
* @brief update variables for debugging about pitch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ geometry_msgs::msg::Pose findTrajectoryPoseAfterDistance(
const double dist = tier4_autoware_utils::calcDistance3d(
trajectory.points.at(i).pose, trajectory.points.at(i + 1).pose);
if (remain_dist < dist) {
if(remain_dist <= 0.0){
if (remain_dist <= 0.0) {
return trajectory.points.at(i).pose;
}
double ratio = remain_dist / dist;
Expand Down
Loading

0 comments on commit 07c2737

Please sign in to comment.