mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 01:03:35 +08:00
29 lines
480 B
Bash
29 lines
480 B
Bash
#!/bin/sh
|
|
#
|
|
# PX4 FMUv2 specific board defaults
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
#
|
|
# 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 ]
|
|
then
|
|
param set SYS_FMU_TASK 0
|
|
fi
|