mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 15:03:34 +08:00
allow to specify secondary mixer which drives fmu PWM outputs
This commit is contained in:
committed by
Lorenz Meier
parent
ff932820e3
commit
7ab58a8bc1
@@ -80,3 +80,17 @@ then
|
||||
pwm failsafe -d $OUTPUT_DEV $FAILSAFE
|
||||
fi
|
||||
fi
|
||||
|
||||
# check if should load secondary mixer
|
||||
if [ $MIXER_SEC != none ]
|
||||
then
|
||||
if fmu mode_pwm
|
||||
then
|
||||
echo "[i] FMU mode_pwm started to handle secondary mixer"
|
||||
# load the specified mixer
|
||||
mixer load /dev/pwm_output1 /etc/mixers/$MIXER_SEC.mix
|
||||
else
|
||||
echo "[i] ERROR: FMU mode_pwm start failed"
|
||||
tone_alarm $TUNE_ERR
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user