mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
rc.fw_interface: use mixer file from sd if it exists
This commit is contained in:
@@ -13,7 +13,17 @@ param set MAV_TYPE 1
|
|||||||
# Load mixer
|
# Load mixer
|
||||||
#
|
#
|
||||||
echo "[init] Frame geometry: $FRAME_GEOMETRY"
|
echo "[init] Frame geometry: $FRAME_GEOMETRY"
|
||||||
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
|
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
|
if mixer load /dev/pwm_output $MIXER
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user