From bb02ed9782651cf385b028b30978e9dd381eeebf Mon Sep 17 00:00:00 2001 From: Silvan Date: Wed, 18 Mar 2026 10:11:15 +0100 Subject: [PATCH] feat(rcS): do not exclude RC_* params from a reset There are many settings falling into the RC_* category that definitely should be reset when e.g. placing the autopilot into a new airframe. And even for RC calibration values: it's not the worst if those are newly calibrated after a reset. Or if they are not expected to change one can bake them into the airframe file. Signed-off-by: Silvan --- ROMFS/px4fmu_common/init.d-posix/rcS | 6 +++--- ROMFS/px4fmu_common/init.d/rcS | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d-posix/rcS b/ROMFS/px4fmu_common/init.d-posix/rcS index 438faf9b48..cbaf724d9f 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -119,11 +119,11 @@ else param set SYS_AUTOCONFIG 1 fi -# To trigger a parameter reset during boot SYS_AUTCONFIG was set to 1 before +# To trigger a parameter reset during boot SYS_AUTOCONFIG was set to 1 before if param greater SYS_AUTOCONFIG 0 then - # Reset parameters except airframe, parameter version, RC calibration, sensor calibration, total flight time, flight UUID - param reset_all SYS_AUTOSTART SYS_PARAM_VER RC* CAL_* LND_FLIGHT* TC_* COM_FLIGHT* + # Reset parameters except airframe, parameter version, sensor calibration, total flight time, flight UUID + param reset_all SYS_AUTOSTART SYS_PARAM_VER CAL_* LND_FLIGHT* TC_* COM_FLIGHT* set AUTOCNF yes fi diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 0697b181ae..94b771b6f8 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -188,11 +188,11 @@ else netman update -i eth0 fi - # To trigger a parameter reset during boot SYS_AUTCONFIG was set to 1 before + # To trigger a parameter reset during boot SYS_AUTOCONFIG was set to 1 before if param greater SYS_AUTOCONFIG 0 then - # Reset parameters except airframe, parameter version, RC calibration, sensor calibration, total flight time, flight UUID - param reset_all SYS_AUTOSTART SYS_PARAM_VER RC* CAL_* LND_FLIGHT* TC_* COM_FLIGHT* + # Reset parameters except airframe, parameter version, sensor calibration, total flight time, flight UUID + param reset_all SYS_AUTOSTART SYS_PARAM_VER CAL_* LND_FLIGHT* TC_* COM_FLIGHT* fi #