mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
Mantis: update bootloader and SYS_AUTOSTART
This adds a check for the previous SYS_AUTOSTART id. If it is still the old/previous SYS_AUTOSTART id, it will flash the new bootloader as well as set the proper SYS_AUTOSTART id.
This commit is contained in:
@@ -22,3 +22,18 @@ set LOGGER_ARGS "-m mavlink"
|
|||||||
|
|
||||||
# Start esc
|
# Start esc
|
||||||
tap_esc start -d /dev/ttyS4 -n 4
|
tap_esc start -d /dev/ttyS4 -n 4
|
||||||
|
|
||||||
|
# Transition from previous non open-source flight stack
|
||||||
|
if param compare SYS_AUTOSTART 4001
|
||||||
|
then
|
||||||
|
param reset_all
|
||||||
|
tune_control play -t 4
|
||||||
|
sleep 2
|
||||||
|
if bl_update /etc/extras/bootloader.bin
|
||||||
|
then
|
||||||
|
tune_control play -t 3
|
||||||
|
else
|
||||||
|
tune_control play -t 5
|
||||||
|
fi
|
||||||
|
sleep 2
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user