From eca4d90a91caa81cf7c50c9a23fc60717b6e1f59 Mon Sep 17 00:00:00 2001 From: TSC21 Date: Mon, 1 Mar 2021 09:32:51 +0100 Subject: [PATCH] init.d-posix: adjust COM_OBC_LOSS_T when using PX4_SIM_SPEED_FACTOR --- 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 e56e1334bf..367fb7fff5 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -177,6 +177,10 @@ if [ -n "$PX4_SIM_SPEED_FACTOR" ]; then COM_OF_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 0.5" | 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_OBC_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 5.0" | bc) + echo "COM_OBC_LOSS_T set to $COM_OBC_LOSS_T_LONGER" + param set COM_OBC_LOSS_T $COM_OBC_LOSS_T_LONGER fi # Autostart ID