forked from Archive/PX4-Autopilot
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:
parent
d67ecc971c
commit
1ac6230758
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue