diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-25 13:41:23 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-25 13:41:23 -0700 |
commit | 49a32756be2ceacebdbb89038fb0382d11955447 (patch) | |
tree | 92e3166cbfcc0095b827c4eb3b9ac7a6bbf3ae97 | |
parent | f7090db7081922cc61e79fce800fb6bce84a3836 (diff) | |
parent | a4956367127845ab7a3ce4dea66b6721a75e2d3d (diff) | |
download | px4-firmware-49a32756be2ceacebdbb89038fb0382d11955447.tar.gz px4-firmware-49a32756be2ceacebdbb89038fb0382d11955447.tar.bz2 px4-firmware-49a32756be2ceacebdbb89038fb0382d11955447.zip |
Merge pull request #427 from thomasgubler/sd_mixer
easystar startup script: load mixer from sd-card if available
-rw-r--r-- | ROMFS/px4fmu_common/init.d/100_mpx_easystar | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ROMFS/px4fmu_common/init.d/100_mpx_easystar b/ROMFS/px4fmu_common/init.d/100_mpx_easystar index 1a05f5140..75437f404 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 |