File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
ROMFS/px4fmu_common/init.d Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,7 @@ if [ $SDCARD_AVAILABLE = yes ]
97
97
then
98
98
if hardfault_log check
99
99
then
100
- # Error tune.
101
- set STARTUP_TUNE 2
100
+ set STARTUP_TUNE 2 # tune 2 = ERROR_TUNE
102
101
if hardfault_log commit
103
102
then
104
103
hardfault_log reset
@@ -182,15 +181,6 @@ else
182
181
#
183
182
tone_alarm start
184
183
185
- #
186
- # Play the startup tune (if not disabled or there is an error)
187
- #
188
- param compare CBRK_BUZZER 782090
189
- if [ $? != 0 -o $STARTUP_TUNE != 1 ]
190
- then
191
- tune_control play -t $STARTUP_TUNE
192
- fi
193
-
194
184
#
195
185
# Waypoint storage.
196
186
# REBOOTWORK this needs to start in parallel.
250
240
then
251
241
# Start UAVCAN firmware update server and dynamic node ID allocation server.
252
242
uavcan start fw
253
- tune_control play -t 1
243
+
254
244
if param greater UAVCAN_ENABLE 2
255
245
then
256
246
set OUTPUT_MODE uavcan_esc
315
305
if [ $USE_IO = yes -a $IO_PRESENT = no ]
316
306
then
317
307
echo " PX4IO not found"
318
- tune_control play error
308
+ set STARTUP_TUNE 2 # tune 2 = ERROR_TUNE
319
309
fi
320
310
321
311
#
@@ -369,6 +359,17 @@ else
369
359
commander start
370
360
fi
371
361
362
+
363
+ #
364
+ # Play the startup tune (if not disabled or there is an error)
365
+ #
366
+ param compare CBRK_BUZZER 782090
367
+ if [ $? != 0 -o $STARTUP_TUNE != 1 ]
368
+ then
369
+ tune_control play -t $STARTUP_TUNE
370
+ fi
371
+
372
+
372
373
# Pre-takeoff continuous magnetometer calibration
373
374
if param compare -s MBE_ENABLE 1
374
375
then
You can’t perform that action at this time.
0 commit comments