mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:53:34 +08:00
32 lines
561 B
Bash
32 lines
561 B
Bash
#!/bin/sh
|
|
#
|
|
# Holybro Durandal V1 specific board defaults
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
#
|
|
# Bootloader upgrade
|
|
#
|
|
set BL_FILE /etc/extras/holybro_durandal-v1_bootloader.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 ]
|
|
then
|
|
# Enable IMU thermal control
|
|
param set SENS_EN_THERMAL 1
|
|
fi
|
|
|
|
set LOGGER_BUF 64
|