diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-07-02 09:35:50 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-07-02 09:35:50 +0200 |
commit | 756a2bb7e69113926551ee08aef0f301acaade1e (patch) | |
tree | 2905395bfcc7eb8f44a64083c5c27d6e8d19c67d | |
parent | 8408993a676acd0149e880ffeded74ce9c67b9c5 (diff) | |
download | px4-firmware-756a2bb7e69113926551ee08aef0f301acaade1e.tar.gz px4-firmware-756a2bb7e69113926551ee08aef0f301acaade1e.tar.bz2 px4-firmware-756a2bb7e69113926551ee08aef0f301acaade1e.zip |
hk micro pcb startup script
-rw-r--r-- | ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb b/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb new file mode 100644 index 000000000..42ec150c1 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/4020_hk_micro_pcb @@ -0,0 +1,27 @@ +#!nsh +# +# Hobbyking Micro Integrated PCB Quadcopter +# +# Anton Babushkin <anton.babushkin@me.com> +# + +sh /etc/init.d/4001_quad_x + +if [ $DO_AUTOCONFIG == yes ] +then + param set MC_ROLL_P 7.0 + param set MC_ROLLRATE_P 0.1 + param set MC_ROLLRATE_I 0.0 + param set MC_ROLLRATE_D 0.003 + param set MC_PITCH_P 7.0 + param set MC_PITCHRATE_P 0.1 + param set MC_PITCHRATE_I 0.0 + param set MC_PITCHRATE_D 0.003 + param set MC_YAW_P 2.8 + param set MC_YAWRATE_P 0.2 + param set MC_YAWRATE_I 0.0 + param set MC_YAWRATE_D 0.0 +fi + +set PWM_MIN 1100 +set PWM_DISARMED 900 |