diff options
author | Lorenz Meier <lorenz@px4.io> | 2015-01-08 17:55:12 +0100 |
---|---|---|
committer | Lorenz Meier <lorenz@px4.io> | 2015-01-08 17:55:12 +0100 |
commit | e4a3c3f76d57282da1e4db7644a35bc83ad77e26 (patch) | |
tree | 5a9e8f097a7a5b1e4cd90fbaa46cf53db2abc696 /ROMFS/px4fmu_common/init.d/10019_sk450_deadcat | |
parent | 28ddd729875697af28197a32bc84c9ab94805f20 (diff) | |
parent | ba89c9eae26ba990317ff0b66d42e114b8c7dffa (diff) | |
download | px4-firmware-e4a3c3f76d57282da1e4db7644a35bc83ad77e26.tar.gz px4-firmware-e4a3c3f76d57282da1e4db7644a35bc83ad77e26.tar.bz2 px4-firmware-e4a3c3f76d57282da1e4db7644a35bc83ad77e26.zip |
Merge pull request #1600 from anton-matosov/SK450DeadCat.v2
Implemented SK450 DeadCat frame support
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/10019_sk450_deadcat')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/10019_sk450_deadcat | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/10019_sk450_deadcat b/ROMFS/px4fmu_common/init.d/10019_sk450_deadcat new file mode 100644 index 000000000..e68f57f25 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/10019_sk450_deadcat @@ -0,0 +1,31 @@ +#!nsh +# +# HobbyKing SK450 DeadCat modification +# +# Anton Matosov <anton.matosov@gmail.com> +# + +sh /etc/init.d/rc.mc_defaults + +if [ $AUTOCNF == yes ] +then + param set MC_ROLL_P 6.0 + param set MC_ROLLRATE_P 0.04 + param set MC_ROLLRATE_I 0.1 + param set MC_ROLLRATE_D 0.0015 + + param set MC_PITCH_P 6.0 + param set MC_PITCHRATE_P 0.08 + param set MC_PITCHRATE_I 0.2 + param set MC_PITCHRATE_D 0.0015 + + param set MC_YAW_P 2.8 + param set MC_YAWRATE_P 0.1 + param set MC_YAWRATE_I 0.07 + param set MC_YAWRATE_D 0.0 +fi + +set MIXER sk450_deadcat + +set PWM_OUT 1234 +set PWM_MIN 1050 |