Skip to content

Commit

Permalink
also report latent fault
Browse files Browse the repository at this point in the history
  • Loading branch information
saka1-s committed Dec 22, 2024
1 parent 08a64be commit ff2b3c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/hazard_status_converter/src/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ void Converter::on_update(DiagGraph::ConstSharedPtr graph)
hazard.status.level = get_system_level(hazard.status);
hazard.status.emergency = hazard.status.level == HazardStatus::SINGLE_POINT_FAULT;
if (report_safe_fault_)
hazard.status.emergency &= hazard.status.level == HazardStatus::SAFE_FAULT;
hazard.status.emergency &=
(hazard.status.level == HazardStatus::SAFE_FAULT ||
hazard.status.level == HazardStatus::LATENT_FAULT);
hazard.status.emergency_holding = false;
pub_hazard_->publish(hazard);
}
Expand Down

0 comments on commit ff2b3c3

Please sign in to comment.