From dba8be5bb7ab7c8d39888ac475575d2cd1a1b7af Mon Sep 17 00:00:00 2001 From: Tomoya Kimura Date: Tue, 8 Mar 2022 17:08:13 +0900 Subject: [PATCH] fix: use hazard in auto command when emergency_handling is false (#487) Signed-off-by: tomoya.kimura --- control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp b/control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp index d455a6be73867..1a6af93ebadad 100644 --- a/control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp +++ b/control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp @@ -342,7 +342,7 @@ void VehicleCmdGate::onTimer() } else { if (current_gate_mode_.data == tier4_control_msgs::msg::GateMode::AUTO) { turn_indicator = auto_commands_.turn_indicator; - hazard_light = emergency_commands_.hazard_light; + hazard_light = auto_commands_.hazard_light; gear = auto_commands_.gear; // Don't send turn signal when autoware is not engaged