posix rcS: always set IMU_INTEG_RATE

If this is wrong, the startup just hangs.
This commit is contained in:
Beat Küng 2020-06-03 11:45:15 +02:00 committed by Daniel Agar
parent d1c12ac7cf
commit 867453eada
1 changed files with 3 additions and 2 deletions

View File

@ -151,8 +151,6 @@ then
# LPE: GPS only mode
param set LPE_FUSION 145
# Simulator IMU data provided at 250 Hz
param set IMU_INTEG_RATE 250
param set MC_PITCH_P 6
param set MC_PITCHRATE_P 0.2
@ -193,6 +191,9 @@ fi
param set COM_CPU_MAX -1 # disable check, no CPU load reported on posix yet
# Simulator IMU data provided at 250 Hz
param set IMU_INTEG_RATE 250
# 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)