forked from Archive/PX4-Autopilot
Autostart: mkblctrl mixer loading fixed
This commit is contained in:
parent
94909e9d8c
commit
95c99618f9
|
@ -30,7 +30,13 @@ fi
|
||||||
echo "[init] Frame geometry: $FRAME_GEOMETRY"
|
echo "[init] Frame geometry: $FRAME_GEOMETRY"
|
||||||
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
|
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
|
||||||
echo "[init] Loading mixer: $MIXER"
|
echo "[init] Loading mixer: $MIXER"
|
||||||
mixer load /dev/pwm_output $MIXER
|
if [ $OUTPUT_MODE == mkblctrl ]
|
||||||
|
then
|
||||||
|
set OUTPUT_DEV /dev/mkblctrl
|
||||||
|
else
|
||||||
|
set OUTPUT_DEV /dev/pwm_output
|
||||||
|
fi
|
||||||
|
mixer load $OUTPUT_DEV $MIXER
|
||||||
|
|
||||||
if [ $OUTPUT_MODE == fmu_pwm -o $OUTPUT_MODE == io_pwm ]
|
if [ $OUTPUT_MODE == fmu_pwm -o $OUTPUT_MODE == io_pwm ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue