diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-20 04:20:04 -0800 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-20 04:20:04 -0800 |
commit | c58b68d3773e4c2ad38b052d36a132439e32d59b (patch) | |
tree | abe5f202816e37ffb8ce8a9868725cf0c0f9b631 /ROMFS/px4fmu_common/init.d/2100_mpx_easystar | |
parent | 13822b35e75cb6a76798159a3f7210d297528243 (diff) | |
parent | f8c5a6cc50cb848a60fd8d359ab4695f18b7d761 (diff) | |
download | px4-firmware-c58b68d3773e4c2ad38b052d36a132439e32d59b.tar.gz px4-firmware-c58b68d3773e4c2ad38b052d36a132439e32d59b.tar.bz2 px4-firmware-c58b68d3773e4c2ad38b052d36a132439e32d59b.zip |
Merge pull request #584 from PX4/autostart_cleanup
Autostart cleanup
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/2100_mpx_easystar')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/2100_mpx_easystar | 61 |
1 files changed, 10 insertions, 51 deletions
diff --git a/ROMFS/px4fmu_common/init.d/2100_mpx_easystar b/ROMFS/px4fmu_common/init.d/2100_mpx_easystar index 97c2d7c90..0e5bf60d6 100644 --- a/ROMFS/px4fmu_common/init.d/2100_mpx_easystar +++ b/ROMFS/px4fmu_common/init.d/2100_mpx_easystar @@ -1,13 +1,15 @@ #!nsh - -echo "[init] PX4FMU v1, v2 with or without IO on EasyStar" - # -# Load default params for this platform +# MPX EasyStar Plane +# +# Maintainers: ??? # -if param compare SYS_AUTOCONFIG 1 + +if [ $DO_AUTOCONFIG == yes ] then - # Set all params here, then disable autoconfig + # + # Default parameters for this platform + # param set FW_P_D 0 param set FW_P_I 0 param set FW_P_IMAX 15 @@ -31,50 +33,7 @@ then param set FW_L1_PERIOD 16 param set RC_SCALE_ROLL 1.0 param set RC_SCALE_PITCH 1.0 - - param set SYS_AUTOCONFIG 0 - param save fi -# -# Force some key parameters to sane values -# MAV_TYPE 1 = fixed wing -# -param set MAV_TYPE 1 - -# -# Start and configure PX4IO or FMU interface -# -if px4io detect -then - # Start MAVLink (depends on orb) - mavlink start - - sh /etc/init.d/rc.io - # Limit to 100 Hz updates and (implicit) 50 Hz PWM - px4io limit 100 -else - # Start MAVLink (on UART1 / ttyS0) - mavlink start -d /dev/ttyS0 - - fmu mode_pwm - param set BAT_V_SCALING 0.004593 - set EXIT_ON_END yes -fi - -# -# Load mixer and start controllers (depends on px4io) -# -if [ -f /fs/microsd/etc/mixers/FMU_RET.mix ] -then - echo "Using /fs/microsd/etc/mixers/FMU_RET.mix" - mixer load /dev/pwm_output /fs/microsd/etc/mixers/FMU_RET.mix -else - echo "Using /etc/mixers/FMU_RET.mix" - mixer load /dev/pwm_output /etc/mixers/FMU_RET.mix -fi - -# -# Start common fixedwing apps -# -sh /etc/init.d/rc.fixedwing +set VEHICLE_TYPE fw +set MIXER FMU_RET |