Browse Source

posix rcS: always disable CPU load check

sbg
Matthias Grob 5 years ago
parent
commit
ffa9fdbd56
  1. 4
      ROMFS/px4fmu_common/init.d-posix/rcS
  2. 2
      src/modules/commander/commander_params.c

4
ROMFS/px4fmu_common/init.d-posix/rcS

@ -185,10 +185,10 @@ then
param set SYS_RESTART_TYPE 2 param set SYS_RESTART_TYPE 2
param set TRIG_INTERFACE 3 param set TRIG_INTERFACE 3
param set COM_CPU_MAX -1
fi 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. # Adapt timeout parameters if simulation runs faster or slower than realtime.
if [ ! -z $PX4_SIM_SPEED_FACTOR ]; then if [ ! -z $PX4_SIM_SPEED_FACTOR ]; then
COM_DL_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 10" | bc) COM_DL_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 10" | bc)

2
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); 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. * A negative value disables the check.
* *

Loading…
Cancel
Save