You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
668 B
38 lines
668 B
#!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.08 |
|
param set MC_ROLLRATE_I 0.03 |
|
param set MC_ROLLRATE_D 0.0015 |
|
|
|
param set MC_PITCH_P 6.0 |
|
param set MC_PITCHRATE_P 0.1 |
|
param set MC_PITCHRATE_I 0.03 |
|
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 |
|
|
|
set PWM_AUX_OUT 1234 |
|
# set PWM_AUX_MIN 900 |
|
# set PWM_AUX_MAX 2100 |
|
set PWM_AUX_RATE 100 |
|
|
|
gimbal start
|
|
|