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.
This commit is contained in:
Julian Oes
2026-04-28 06:55:43 +12:00
committed by Ramon Roche
parent 9a446cce0c
commit 92c6818fc5

View File

@@ -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