diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-27 18:16:50 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-27 18:16:50 +0100 |
commit | dc3907fb36d06064e1f92b098b2b0bae860f4074 (patch) | |
tree | 7b0fa8b77b1adc60644faa72e170d09b40bcfbb7 /ROMFS/px4fmu_common/init.d/2101_hk_bixler | |
parent | 20108ed95d5bbae64bfcb95de5404fa97d9d0ac1 (diff) | |
parent | 7e855b5a23c9053dc8a59fcf33670e1cb93dd34b (diff) | |
download | px4-firmware-dc3907fb36d06064e1f92b098b2b0bae860f4074.tar.gz px4-firmware-dc3907fb36d06064e1f92b098b2b0bae860f4074.tar.bz2 px4-firmware-dc3907fb36d06064e1f92b098b2b0bae860f4074.zip |
Merge branch 'master' of github.com:PX4/Firmware into beta
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/2101_hk_bixler')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/2101_hk_bixler | 48 |
1 files changed, 4 insertions, 44 deletions
diff --git a/ROMFS/px4fmu_common/init.d/2101_hk_bixler b/ROMFS/px4fmu_common/init.d/2101_hk_bixler index 995d3ba07..1ed923b19 100644 --- a/ROMFS/px4fmu_common/init.d/2101_hk_bixler +++ b/ROMFS/px4fmu_common/init.d/2101_hk_bixler @@ -1,11 +1,11 @@ #!nsh -echo "[init] PX4FMU v1, v2 with or without IO on HK Bixler" +echo "[init] PX4FMU v1, v2 with or without IO on 3DR SkyWalker" # # Load default params for this platform # -if param compare SYS_AUTOCONFIG 1 +if [ $DO_AUTOCONFIG == yes ] then # Set all params here, then disable autoconfig param set FW_P_D 0 @@ -35,46 +35,6 @@ then 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_AERT.mix ] -then - echo "Using /fs/microsd/etc/mixers/FMU_AERT.mix" - mixer load /dev/pwm_output /fs/microsd/etc/mixers/FMU_AERT.mix -else - echo "Using /etc/mixers/FMU_Q.mix" - mixer load /dev/pwm_output /etc/mixers/FMU_AERT.mix -fi -# -# Start common fixedwing apps -# -sh /etc/init.d/rc.fixedwing +set VEHICLE_TYPE fw +set MIXER FMU_AERT
\ No newline at end of file |