boards: always change default IMU_GYRO_RATEMAX on px4_fmu-v2/v3 and mro_x21

- this can lower cpu usage considerably on older boards
This commit is contained in:
Daniel Agar 2020-04-15 19:59:25 -04:00
parent d67ecc971c
commit 1ac6230758
3 changed files with 17 additions and 9 deletions

View File

@ -3,11 +3,13 @@
# mRo x21 specific board defaults
#------------------------------------------------------------------------------
# to minimize cpu usage on older boards limit inner loop to 400 Hz by default
if param compare IMU_GYRO_RATEMAX 0
then
param set IMU_GYRO_RATEMAX 400
fi
if [ $AUTOCNF = yes ]
then
# to minimize cpu usage on older boards limit inner loop to 400 Hz
param set IMU_GYRO_RATEMAX 400
fi

View File

@ -22,10 +22,13 @@ then
fi
unset BL_FILE
# to minimize cpu usage on older boards limit inner loop to 400 Hz by default
if param compare IMU_GYRO_RATEMAX 0
then
param set IMU_GYRO_RATEMAX 400
fi
if [ $AUTOCNF = yes ]
then
# to minimize cpu usage on older boards limit inner loop to 400 Hz
param set IMU_GYRO_RATEMAX 400
fi

View File

@ -22,10 +22,13 @@ then
fi
unset BL_FILE
# to minimize cpu usage on older boards limit inner loop to 400 Hz by default
if param compare IMU_GYRO_RATEMAX 0
then
param set IMU_GYRO_RATEMAX 400
fi
if [ $AUTOCNF = yes ]
then
# to minimize cpu usage on older boards limit inner loop to 400 Hz
param set IMU_GYRO_RATEMAX 400
fi