forked from Archive/PX4-Autopilot
32 lines
565 B
Plaintext
32 lines
565 B
Plaintext
#!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
|