diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-12 01:03:34 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-12 01:03:34 -0700 |
commit | c384dc993c94504519e77a9e33dd296d76ba682e (patch) | |
tree | 5bdb086ac86053baa69e9bb97f0472727d3e1e6d | |
parent | 3f4c264050774e79add989cb85a80623038478c0 (diff) | |
parent | 01a54390e9ac1daa3af8c51ae3c35e39bf99cec6 (diff) | |
download | px4-firmware-c384dc993c94504519e77a9e33dd296d76ba682e.tar.gz px4-firmware-c384dc993c94504519e77a9e33dd296d76ba682e.tar.bz2 px4-firmware-c384dc993c94504519e77a9e33dd296d76ba682e.zip |
Merge pull request #924 from PX4/qu4d
Steadidrone Qu4d startup script
-rw-r--r-- | ROMFS/px4fmu_common/init.d/10017_steadidrone_qu4d | 35 | ||||
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.autostart | 5 |
2 files changed, 40 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/10017_steadidrone_qu4d b/ROMFS/px4fmu_common/init.d/10017_steadidrone_qu4d new file mode 100644 index 000000000..6179855f6 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/10017_steadidrone_qu4d @@ -0,0 +1,35 @@ +#!nsh +# +# Steadidrone QU4D +# +# Thomas Gubler <thomasgubler@gmail.com> +# Lorenz Meier <lm@inf.ethz.ch> +# + +sh /etc/init.d/rc.mc_defaults + +if [ $DO_AUTOCONFIG == yes ] +then + # TODO tune roll/pitch separately + param set MC_ROLL_P 7.0 + param set MC_ROLLRATE_P 0.13 + param set MC_ROLLRATE_I 0.0 + param set MC_ROLLRATE_D 0.004 + param set MC_PITCH_P 7.0 + param set MC_PITCHRATE_P 0.13 + param set MC_PITCHRATE_I 0.0 + param set MC_PITCHRATE_D 0.004 + param set MC_YAW_P 0.5 + param set MC_YAWRATE_P 0.2 + param set MC_YAWRATE_I 0.0 + param set MC_YAWRATE_D 0.0 + + param set BAT_N_CELLS 4 +fi + +set MIXER FMU_quad_w + +set PWM_MIN 1210 +set PWM_MAX 2100 + +set PWM_OUTPUTS 1234 diff --git a/ROMFS/px4fmu_common/init.d/rc.autostart b/ROMFS/px4fmu_common/init.d/rc.autostart index 5ec735d39..b365bd642 100644 --- a/ROMFS/px4fmu_common/init.d/rc.autostart +++ b/ROMFS/px4fmu_common/init.d/rc.autostart @@ -195,6 +195,11 @@ then sh /etc/init.d/10016_3dr_iris fi +if param compare SYS_AUTOSTART 10017 +then + sh /etc/init.d/10017_steadidrone_qu4d +fi + # # Hexa Coaxial # |