From 92c6818fc558ac386123bba1442d56200e9f135e Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 28 Apr 2026 06:55:43 +1200 Subject: [PATCH] fix(rcS): scale COM_DISARM_PRFLT by sim speed factor Symmetric with the existing COM_DL_LOSS_T / COM_RC_LOSS_T / COM_OF_LOSS_T / COM_OBC_LOSS_T scalings just above. At high simulation speed the default 10s preflight disarm is reached much sooner in real wall time than tests expect, so scale it the same way. --- ROMFS/px4fmu_common/init.d-posix/rcS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d-posix/rcS b/ROMFS/px4fmu_common/init.d-posix/rcS index 86d86e24e7c..4d826ddc046 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -198,6 +198,10 @@ if [ -n "$PX4_SIM_SPEED_FACTOR" ]; then COM_OF_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 1.0" | bc) echo "COM_OF_LOSS_T set to $COM_OF_LOSS_T_LONGER" param set COM_OF_LOSS_T $COM_OF_LOSS_T_LONGER + + COM_DISARM_PRFLT_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 10.0" | bc) + echo "COM_DISARM_PRFLT set to $COM_DISARM_PRFLT_LONGER" + param set COM_DISARM_PRFLT $COM_DISARM_PRFLT_LONGER fi # Autostart ID