提交 80a370a8 编写于 作者: K kevin-y-wang 提交者: Xiangquan Xiao

Control: fix bugs for boolean declaration in Lat_Controller

上级 07d029c9
......@@ -247,13 +247,13 @@ Status LatController::Init(const ControlConf *control_conf) {
LoadLatGainScheduler(lat_controller_conf);
LogInitParameters();
bool enable_leadlag_ = control_conf_->lat_controller_conf()
.enable_reverse_leadlag_compensation();
enable_leadlag_ = control_conf_->lat_controller_conf()
.enable_reverse_leadlag_compensation();
if (enable_leadlag_) {
leadlag_controller_.Init(lat_controller_conf.reverse_leadlag_conf(), ts_);
}
bool enable_mrac_ =
enable_mrac_ =
control_conf_->lat_controller_conf().enable_steer_mrac_control();
if (enable_mrac_) {
mrac_controller_.Init(lat_controller_conf.steer_mrac_conf(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册