From a4956367127845ab7a3ce4dea66b6721a75e2d3d Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Wed, 25 Sep 2013 22:32:23 +0200 Subject: [PATCH] easystar startup script: load mixer from sd-card if available --- ROMFS/px4fmu_common/init.d/100_mpx_easystar | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ROMFS/px4fmu_common/init.d/100_mpx_easystar b/ROMFS/px4fmu_common/init.d/100_mpx_easystar index 1a05f51400..75437f4047 100644 --- a/ROMFS/px4fmu_common/init.d/100_mpx_easystar +++ b/ROMFS/px4fmu_common/init.d/100_mpx_easystar @@ -69,7 +69,14 @@ att_pos_estimator_ekf start # # Load mixer and start controllers (depends on px4io) # -mixer load /dev/pwm_output /etc/mixers/FMU_RET.mix +if [ -f /fs/microsd/etc/mixers/FMU_RET.mix ] +then + echo "Using FMU_RET mixer from sd card" + mixer load /dev/pwm_output /fs/microsd/etc/mixers/FMU_RET.mix +else + echo "Using standard FMU_RET mixer" + mixer load /dev/pwm_output /etc/mixers/FMU_RET.mix +fi fw_att_control start # Not ready yet for prime-time #fw_pos_control_l1 start