From 4e1c5ce7c9e4918088839ec185913d9a0442d4d1 Mon Sep 17 00:00:00 2001 From: Max Schmeller <6088931+mojomex@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:10:36 +0900 Subject: [PATCH] chore(hesai): make `tracking` a `WARN`ing instead of an `ERROR` (#242) Signed-off-by: Max SCHMELLER --- nebula_ros/src/hesai/hw_monitor_wrapper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nebula_ros/src/hesai/hw_monitor_wrapper.cpp b/nebula_ros/src/hesai/hw_monitor_wrapper.cpp index 83084a3c9..038ef48e9 100644 --- a/nebula_ros/src/hesai/hw_monitor_wrapper.cpp +++ b/nebula_ros/src/hesai/hw_monitor_wrapper.cpp @@ -265,6 +265,9 @@ void HesaiHwMonitorWrapper::hesai_check_ptp( if (str == "locked") { level = diagnostic_msgs::msg::DiagnosticStatus::OK; msg = "synchronized"; + } else if (str == "tracking") { + level = diagnostic_msgs::msg::DiagnosticStatus::WARN; + msg = "synchronized, degraded"; } }