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/12001_octo_cox_pwm | |
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/12001_octo_cox_pwm')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/12001_octo_cox_pwm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/12001_octo_cox_pwm b/ROMFS/px4fmu_common/init.d/12001_octo_cox_pwm new file mode 100644 index 000000000..5f3cec4e0 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/12001_octo_cox_pwm @@ -0,0 +1,37 @@ +#!nsh +# +# Generic 10” Octo coaxial geometry +# +# Maintainers: Lorenz Meier <lm@inf.ethz.ch> +# + +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 1234 +set PWM_RATE 400 +# DJI ESC range +set PWM_DISARMED 900 +set PWM_MIN 1200 +set PWM_MAX 1900 |