From 80a370a8a481bbecff2052877096ed74fc75686c Mon Sep 17 00:00:00 2001 From: kevin-y-wang Date: Sun, 15 Dec 2019 19:37:13 -0800 Subject: [PATCH] Control: fix bugs for boolean declaration in Lat_Controller --- modules/control/controller/lat_controller.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/control/controller/lat_controller.cc b/modules/control/controller/lat_controller.cc index d03cc2d33f9..1ea08eee219 100644 --- a/modules/control/controller/lat_controller.cc +++ b/modules/control/controller/lat_controller.cc @@ -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(),