Skip to content

Commit

Permalink
chore(mpc): add default value (#3976)
Browse files Browse the repository at this point in the history
* chore(mpc): add default value

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* fix precommit

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
  • Loading branch information
TakaHoribe authored Jun 15, 2023
1 parent 6781682 commit f083fd2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ class MPC
//!< @brief steering rate limit list depending on velocity [m/s], [rad/s]
std::vector<std::pair<double, double>> m_steer_rate_lim_map_by_velocity{};

bool m_use_steer_prediction; // Flag to use predicted steer instead of measured steer.
double ego_nearest_dist_threshold; // Threshold for nearest index search based on distance.
double ego_nearest_yaw_threshold; // Threshold for nearest index search based on yaw.
bool m_use_steer_prediction; // Flag to use predicted steer instead of measured steer.
double ego_nearest_dist_threshold = 3.0; // Threshold for nearest index search based on distance.
double ego_nearest_yaw_threshold = M_PI_2; // Threshold for nearest index search based on yaw.

//!< Constructor.
MPC() = default;
Expand Down

0 comments on commit f083fd2

Please sign in to comment.