Skip to content

Commit

Permalink
PX4: add startup tone file
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall authored and tridge committed Apr 21, 2016
1 parent 246cf11 commit 19f80db
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 6 additions & 1 deletion mk/PX4/ROMFS/init.d/rc.APM
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions mk/PX4/ROMFS/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions mk/PX4/ROMFS/tones/startup
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MFT240L8O4aO5dcO4aO5dcO4aO5dcL16dcdcdcdc

0 comments on commit 19f80db

Please sign in to comment.