mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
px4fmu_test:rcS:Use tune_control
This commit is contained in:
committed by
Lorenz Meier
parent
a2dde6bc19
commit
91abb36063
@@ -28,11 +28,11 @@ if [ $? == 0 ]
|
|||||||
then
|
then
|
||||||
echo "[i] card mounted at /fs/microsd"
|
echo "[i] card mounted at /fs/microsd"
|
||||||
# Start playing the startup tune
|
# Start playing the startup tune
|
||||||
tone_alarm start
|
tune_control play -t 1
|
||||||
else
|
else
|
||||||
echo "[i] no microSD card found"
|
echo "[i] no microSD card found"
|
||||||
# Play SOS
|
# Play SOS
|
||||||
tone_alarm error
|
tune_control play -t 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -79,22 +79,22 @@ then
|
|||||||
echo "PX4IO CRC OK"
|
echo "PX4IO CRC OK"
|
||||||
else
|
else
|
||||||
echo "PX4IO CRC failure"
|
echo "PX4IO CRC failure"
|
||||||
tone_alarm MBABGP
|
tune_control play -t 18
|
||||||
if px4io forceupdate 14662 $io_file
|
if px4io forceupdate 14662 $io_file
|
||||||
then
|
then
|
||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
echo "PX4IO restart OK"
|
echo "PX4IO restart OK"
|
||||||
tone_alarm MSPAA
|
tune_control play -t 19
|
||||||
else
|
else
|
||||||
echo "PX4IO restart failed"
|
echo "PX4IO restart failed"
|
||||||
tone_alarm MNGGG
|
tune_control play -t 20
|
||||||
set unit_test_failure 1
|
set unit_test_failure 1
|
||||||
set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
|
set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "PX4IO update failed"
|
echo "PX4IO update failed"
|
||||||
tone_alarm MNGGG
|
tune_control play -t 20
|
||||||
set unit_test_failure 1
|
set unit_test_failure 1
|
||||||
set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
|
set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user