mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 06:53:34 +08:00
boards: fmu-v2/v3 limit rate loop by default
This commit is contained in:
committed by
Lorenz Meier
parent
fa83f3799a
commit
b2f4dae2c4
@@ -25,4 +25,7 @@ unset BL_FILE
|
|||||||
if [ $AUTOCNF = yes ]
|
if [ $AUTOCNF = yes ]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
# to minimize cpu usage on older boards limit inner loop to 400 Hz
|
||||||
|
param set IMU_GYRO_RATEMAX 400
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* nuttx-configs/px4_fmu-v2/scripts/ld.script
|
* scripts/ld.script
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
|
|||||||
@@ -4,7 +4,28 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bootloader upgrade
|
||||||
|
#
|
||||||
|
set BL_FILE /etc/extras/px4fmuv3_bl.bin
|
||||||
|
if [ -f $BL_FILE ]
|
||||||
|
then
|
||||||
|
if param compare SYS_BL_UPDATE 1
|
||||||
|
then
|
||||||
|
param set SYS_BL_UPDATE 0
|
||||||
|
param save
|
||||||
|
echo "BL update..." >> $LOG_FILE
|
||||||
|
bl_update $BL_FILE
|
||||||
|
echo "BL update done" >> $LOG_FILE
|
||||||
|
reboot
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
unset BL_FILE
|
||||||
|
|
||||||
if [ $AUTOCNF = yes ]
|
if [ $AUTOCNF = yes ]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
# to minimize cpu usage on older boards limit inner loop to 400 Hz
|
||||||
|
param set IMU_GYRO_RATEMAX 400
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -496,7 +496,6 @@ __BEGIN_DECLS
|
|||||||
|
|
||||||
extern void stm32_spiinitialize(void);
|
extern void stm32_spiinitialize(void);
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Name: board_spi_reset board_peripheral_reset
|
* Name: board_spi_reset board_peripheral_reset
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user