mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Mantis: move tap_esc to extras
This way we work around an issue where tap_esc got stuck during bootup in a cold boot.
This commit is contained in:
parent
24bdf79180
commit
e15cbc3a6b
@ -29,20 +29,3 @@ set MIXER_FILE ""
|
||||
set MIXER "skip"
|
||||
set OUTPUT_MODE "skip"
|
||||
|
||||
# Start ESC already here, so that we have beeps.
|
||||
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
|
||||
|
||||
18
boards/atl/mantis-edu/init/rc.board_extras
Normal file
18
boards/atl/mantis-edu/init/rc.board_extras
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
Loading…
x
Reference in New Issue
Block a user