mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 05:05:19 +08:00
Append AUX mixer for HITL simulation (#5457)
This commit is contained in:
committed by
Lorenz Meier
parent
cbbf5e2e7c
commit
79d8d580b1
@@ -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
|
||||
|
||||
@@ -438,7 +438,7 @@ then
|
||||
|
||||
if [ $OUTPUT_MODE == hil ]
|
||||
then
|
||||
if pwm_out_sim mode_port2_pwm8
|
||||
if pwm_out_sim mode_pwm16
|
||||
then
|
||||
else
|
||||
tone_alarm $TUNE_ERR
|
||||
|
||||
Reference in New Issue
Block a user