Skip to content

Commit

Permalink
Control: fix bugs for boolean declaration in Lat_Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-y-wang authored and xiaoxq committed Dec 16, 2019
1 parent 07d029c commit 80a370a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/control/controller/lat_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 80a370a

Please sign in to comment.