File tree 1 file changed +5
-5
lines changed
system/autoware_mrm_handler/src/mrm_handler
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,7 @@ void MrmHandler::onOperationModeAvailability(
88
88
{
89
89
stamp_operation_mode_availability_ = this ->now ();
90
90
operation_mode_availability_ = msg;
91
- const bool skip_emergency_holding_check =
92
- !param_.use_emergency_holding || is_emergency_holding_;
91
+ const bool skip_emergency_holding_check = !param_.use_emergency_holding || is_emergency_holding_;
93
92
94
93
if (skip_emergency_holding_check) {
95
94
return ;
@@ -102,9 +101,10 @@ void MrmHandler::onOperationModeAvailability(
102
101
103
102
// If no timestamp is available, the ego autonomous mode just became unavailable and the current
104
103
// time is recorded.
105
- stamp_current_operation_mode_become_unavailable_ = (!stamp_current_operation_mode_become_unavailable_.has_value ())
106
- ? this ->now ()
107
- : stamp_current_operation_mode_become_unavailable_;
104
+ stamp_current_operation_mode_become_unavailable_ =
105
+ (!stamp_current_operation_mode_become_unavailable_.has_value ())
106
+ ? this ->now ()
107
+ : stamp_current_operation_mode_become_unavailable_;
108
108
109
109
// Check if autonomous mode unavailable time is larger than timeout threshold.
110
110
const auto emergency_duration =
You can’t perform that action at this time.
0 commit comments