diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-01-12 18:55:41 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-01-12 18:55:41 +0100 |
commit | 449ed058c3554d2317e25395a2f5ebdb21816294 (patch) | |
tree | 2ff872cc4cfccd4358c3600efad95061ed621956 | |
parent | d079074e801a6cb590f91053e2e6d96d5113c5c5 (diff) | |
download | px4-firmware-449ed058c3554d2317e25395a2f5ebdb21816294.tar.gz px4-firmware-449ed058c3554d2317e25395a2f5ebdb21816294.tar.bz2 px4-firmware-449ed058c3554d2317e25395a2f5ebdb21816294.zip |
rc.fw_interface: use mixer file from sd if it exists
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.fw_interface | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.fw_interface b/ROMFS/px4fmu_common/init.d/rc.fw_interface index 69f3ed7f7..1bf7a0e03 100644 --- a/ROMFS/px4fmu_common/init.d/rc.fw_interface +++ b/ROMFS/px4fmu_common/init.d/rc.fw_interface @@ -13,7 +13,17 @@ param set MAV_TYPE 1 # Load mixer # 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 then |