mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 02:50:34 +08:00
35 lines
592 B
Plaintext
35 lines
592 B
Plaintext
#!nsh
|
|
#
|
|
# Script to configure fixedwing control interface
|
|
#
|
|
|
|
#
|
|
# Force some key parameters to sane values
|
|
# MAV_TYPE 1 = fixed wing
|
|
#
|
|
param set MAV_TYPE 1
|
|
|
|
#
|
|
# Load mixer
|
|
#
|
|
echo "[init] Frame geometry: $FRAME_GEOMETRY"
|
|
set MIXERSD /fs/microsd/etc/mixers/FMU_$FRAME_GEOMETRY.mix
|
|
|
|
#Use the mixer file from the sd-card if it exists
|
|
if [ -f $MIXERSD ]
|
|
then
|
|
set MIXER $MIXERSD
|
|
else
|
|
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
|
|
fi
|
|
|
|
|
|
|
|
if mixer load /dev/pwm_output $MIXER
|
|
then
|
|
echo "[init] Mixer loaded: $MIXER"
|
|
else
|
|
echo "[init] Error loading mixer: $MIXER"
|
|
tone_alarm $TUNE_OUT_ERROR
|
|
fi
|