From 14037c67fec02f2ae3fa02785e0276068b8dd49a Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Fri, 17 Apr 2020 17:23:27 +0200 Subject: [PATCH] posix rcS: always disable CPU load check --- ROMFS/px4fmu_common/init.d-posix/rcS | 4 ++-- src/modules/commander/commander_params.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d-posix/rcS b/ROMFS/px4fmu_common/init.d-posix/rcS index afae312a1123..1e95b0aed464 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -185,10 +185,10 @@ then param set SYS_RESTART_TYPE 2 param set TRIG_INTERFACE 3 - - param set COM_CPU_MAX -1 fi +param set COM_CPU_MAX -1 # disable check, no CPU load reported on posix yet + # Adapt timeout parameters if simulation runs faster or slower than realtime. if [ ! -z $PX4_SIM_SPEED_FACTOR ]; then COM_DL_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 10" | bc) diff --git a/src/modules/commander/commander_params.c b/src/modules/commander/commander_params.c index afaa5c92d903..b27c6c1a6249 100644 --- a/src/modules/commander/commander_params.c +++ b/src/modules/commander/commander_params.c @@ -901,7 +901,7 @@ PARAM_DEFINE_INT32(COM_MOT_TEST_EN, 1); PARAM_DEFINE_FLOAT(COM_KILL_DISARM, 5.0f); /** - * Maximum allowed CPU load to still allow arming + * Maximum allowed CPU load to still arm * * A negative value disables the check. *