From 5de372804c6eb9bac2c99dfb5e0cdf941c59cc91 Mon Sep 17 00:00:00 2001 From: Kamil Mert Date: Fri, 23 Oct 2026 16:51:29 +0300 Subject: [PATCH] fix(drivers): fix UAVCAN hygrometer temperature and node build guard (#29338) * fix(uavcan): drop Kelvin offset from hygrometer temperature The DroneCAN Hygrometer message already carries temperature in degrees Celsius, which is also the unit of sensor_hygrometer. Adding the absolute zero offset made the reported value off by -273.15 degrees. Signed-off-by: kmert-mx * fix(uavcannode): add missing CONFIG_ prefix to hygrometer guard The hygrometer publisher was guarded by UAVCANNODE_HYGROMETER_MEASUREMENT, but Kconfig options are defined with the CONFIG_ prefix. The guard never evaluated to true, so the publisher was never built even when enabled in the board config. Signed-off-by: kmert-mx --------- Signed-off-by: kmert-mx Co-authored-by: kmerttz --- src/drivers/uavcan/sensors/hygrometer.cpp | 3 +-- src/drivers/uavcannode/UavcanNode.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/drivers/uavcan/sensors/hygrometer.cpp b/src/drivers/uavcan/sensors/hygrometer.cpp index 340b7ab4b77..ea9db19073c 100755 --- a/src/drivers/uavcan/sensors/hygrometer.cpp +++ b/src/drivers/uavcan/sensors/hygrometer.cpp @@ -34,7 +34,6 @@ #include "hygrometer.hpp" #include -#include const char *const UavcanHygrometerBridge::NAME = "hygrometer_sensor"; @@ -66,7 +65,7 @@ void UavcanHygrometerBridge::hygro_sub_cb(const uavcan::ReceivedDataStructure