Skip to content

Commit ff2b3c3

Browse files
committed
also report latent fault
1 parent 08a64be commit ff2b3c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/hazard_status_converter/src/converter.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ void Converter::on_update(DiagGraph::ConstSharedPtr graph)
122122
hazard.status.level = get_system_level(hazard.status);
123123
hazard.status.emergency = hazard.status.level == HazardStatus::SINGLE_POINT_FAULT;
124124
if (report_safe_fault_)
125-
hazard.status.emergency &= hazard.status.level == HazardStatus::SAFE_FAULT;
125+
hazard.status.emergency &=
126+
(hazard.status.level == HazardStatus::SAFE_FAULT ||
127+
hazard.status.level == HazardStatus::LATENT_FAULT);
126128
hazard.status.emergency_holding = false;
127129
pub_hazard_->publish(hazard);
128130
}

0 commit comments

Comments
 (0)