Skip to content

Commit

Permalink
chore hesai ptp diag condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaro-hihara committed Nov 26, 2024
1 parent d04eac5 commit 2ae95f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nebula_ros/src/hesai/hw_monitor_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ void HesaiHwMonitorWrapper::HesaiCheckPtp(diagnostic_updater::DiagnosticStatusWr
if (ptp_status != "UNKNOWN") {
msg.emplace_back("ptp_status: " + ptp_status);
}
if (ptp_status == "FREE RUN" && gps_status == "UNKNOWN") {
level = diagnostic_msgs::msg::DiagnosticStatus::WARN;
if (ptp_status == "FREE RUN" || ptp_status == "FROZEN") {
level = diagnostic_msgs::msg::DiagnosticStatus::ERROR;
}
diagnostics.summary(level, boost::algorithm::join(msg, ", "));
} else {
Expand Down

0 comments on commit 2ae95f0

Please sign in to comment.