Append AUX mixer for HITL simulation (#5457)

This commit is contained in:
Bart Slinger
2016-09-07 12:09:22 +02:00
committed by Lorenz Meier
parent cbbf5e2e7c
commit 79d8d580b1
4 changed files with 41 additions and 10 deletions

View File

@@ -138,7 +138,18 @@ then
then
if fmu mode_$AUX_MODE
then
if [ -e $OUTPUT_AUX_DEV ]
# Append aux mixer to main device
if [ $OUTPUT_MODE == hil ]
then
if mixer append $OUTPUT_DEV $MIXER_AUX_FILE
then
echo "INFO [init] Mixer: $MIXER_AUX_FILE appended to $OUTPUT_DEV"
else
echo "ERROR [init] Error appending mixer: $MIXER_AUX_FILE"
echo "ERROR [init] Could not append mixer: $MIXER_AUX_FILE" >> $LOG_FILE
fi
fi
if [ -e $OUTPUT_AUX_DEV -a $OUTPUT_MODE != hil ]
then
if mixer load $OUTPUT_AUX_DEV $MIXER_AUX_FILE
then