mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
PX4: add startup tone file
This commit is contained in:
parent
246cf113df
commit
19f80dbcb4
@ -141,7 +141,12 @@ then
|
||||
then
|
||||
set HAVE_PX4IO true
|
||||
# play happy tune again
|
||||
tone_alarm 1
|
||||
if [ -f /etc/tones/startup ]
|
||||
then
|
||||
tone_alarm /etc/tones/startup
|
||||
else
|
||||
tone_alarm 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
@ -43,7 +43,12 @@ then
|
||||
echo "[init] card mounted at /fs/microsd"
|
||||
set HAVE_MICROSD 1
|
||||
# Start playing the startup tune
|
||||
tone_alarm 1
|
||||
if [ -f /etc/tones/startup ]
|
||||
then
|
||||
tone_alarm /etc/tones/startup
|
||||
else
|
||||
tone_alarm 1
|
||||
fi
|
||||
else
|
||||
set HAVE_MICROSD 0
|
||||
echo "Trying format of microSD"
|
||||
@ -55,7 +60,12 @@ else
|
||||
then
|
||||
echo "format succeeded"
|
||||
set HAVE_MICROSD 1
|
||||
tone_alarm 1
|
||||
if [ -f /etc/tones/startup ]
|
||||
then
|
||||
tone_alarm /etc/tones/startup
|
||||
else
|
||||
tone_alarm 1
|
||||
fi
|
||||
else
|
||||
echo "mount failed"
|
||||
tone_alarm MNBG
|
||||
|
1
mk/PX4/ROMFS/tones/startup
Normal file
1
mk/PX4/ROMFS/tones/startup
Normal file
@ -0,0 +1 @@
|
||||
MFT240L8O4aO5dcO4aO5dcO4aO5dcL16dcdcdcdc
|
Loading…
Reference in New Issue
Block a user