From 35b0e93387fa9ea2082f6207b456420e5c3716db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Mi=C5=A1i=C4=87?= Date: Tue, 23 Jan 2024 19:13:16 +0100 Subject: [PATCH] ROMFS: start magnetometer temperature compensation if enabled --- ROMFS/px4fmu_common/init.d/rc.thermal_cal | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rc.thermal_cal b/ROMFS/px4fmu_common/init.d/rc.thermal_cal index 484b9af69f..9614c15b19 100644 --- a/ROMFS/px4fmu_common/init.d/rc.thermal_cal +++ b/ROMFS/px4fmu_common/init.d/rc.thermal_cal @@ -22,6 +22,11 @@ then set TEMP_COMP_START "true" fi +if param compare -s TC_M_ENABLE 1 +then + set TEMP_COMP_START "true" +fi + if [ "x$TEMP_COMP_START" != "x" ] then temperature_compensation start