mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user