diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-11 08:24:18 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-11 08:24:18 +0100 |
commit | 1b978293d9cce0ddd49299ac893864fea27ae491 (patch) | |
tree | 78e6e03a233a5addc6be6fd7703438076e3a2682 /ROMFS/px4fmu_common/init.d/12001_octo_cox | |
parent | 268f3d757f264fcd1c2217a41d5fa480e0c91a8f (diff) | |
parent | 0388d9adefb33c98f1e4350e3f2ed59a7fdd5359 (diff) | |
download | px4-firmware-1b978293d9cce0ddd49299ac893864fea27ae491.tar.gz px4-firmware-1b978293d9cce0ddd49299ac893864fea27ae491.tar.bz2 px4-firmware-1b978293d9cce0ddd49299ac893864fea27ae491.zip |
Merged master into beta
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/12001_octo_cox')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/12001_octo_cox | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/ROMFS/px4fmu_common/init.d/12001_octo_cox b/ROMFS/px4fmu_common/init.d/12001_octo_cox index c5d3e7807..a55fc5a30 100644 --- a/ROMFS/px4fmu_common/init.d/12001_octo_cox +++ b/ROMFS/px4fmu_common/init.d/12001_octo_cox @@ -2,11 +2,36 @@ # # Generic 10” Octo coaxial geometry # -# Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com> +# Lorenz Meier <lm@inf.ethz.ch> # -sh /etc/init.d/rc.mc_defaults +if [ $DO_AUTOCONFIG == yes ] +then + # + # Default parameters for this platform + # + param set MC_ATT_P 7.0 + param set MC_ATT_I 0.0 + param set MC_ATT_D 0.0 + param set MC_ATTRATE_P 0.12 + param set MC_ATTRATE_I 0.0 + param set MC_ATTRATE_D 0.004 + param set MC_YAWPOS_P 2.0 + param set MC_YAWPOS_I 0.0 + param set MC_YAWPOS_D 0.0 + param set MC_YAWRATE_P 0.3 + param set MC_YAWRATE_I 0.2 + param set MC_YAWRATE_D 0.005 + + # TODO add default MPC parameters +fi +set VEHICLE_TYPE mc set MIXER FMU_octo_cox -set PWM_OUTPUTS 12345678
\ No newline at end of file +set PWM_OUTPUTS 12345678 +set PWM_RATE 400 +# DJI ESC range +set PWM_DISARMED 900 +set PWM_MIN 1200 +set PWM_MAX 1900 |