diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-09-25 22:32:23 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-09-25 22:32:23 +0200 |
commit | a4956367127845ab7a3ce4dea66b6721a75e2d3d (patch) | |
tree | 92e3166cbfcc0095b827c4eb3b9ac7a6bbf3ae97 /ROMFS | |
parent | f7090db7081922cc61e79fce800fb6bce84a3836 (diff) | |
download | px4-firmware-a4956367127845ab7a3ce4dea66b6721a75e2d3d.tar.gz px4-firmware-a4956367127845ab7a3ce4dea66b6721a75e2d3d.tar.bz2 px4-firmware-a4956367127845ab7a3ce4dea66b6721a75e2d3d.zip |
easystar startup script: load mixer from sd-card if available
Diffstat (limited to 'ROMFS')
-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 |