2014-04-12 11:13:34 -03:00
|
|
|
#!nsh
|
|
|
|
#
|
|
|
|
# Steadidrone QU4D
|
|
|
|
#
|
2014-11-15 11:19:51 -04:00
|
|
|
# Thomas Gubler <thomas@px4.io>
|
2014-04-12 11:13:34 -03:00
|
|
|
#
|
|
|
|
|
|
|
|
sh /etc/init.d/rc.mc_defaults
|
|
|
|
|
2014-11-17 12:10:47 -04:00
|
|
|
if [ $AUTOCNF == yes ]
|
2014-04-12 11:13:34 -03:00
|
|
|
then
|
|
|
|
param set MC_ROLL_P 7.0
|
|
|
|
param set MC_ROLLRATE_P 0.13
|
2015-05-13 10:28:02 -03:00
|
|
|
param set MC_ROLLRATE_I 0.05
|
2014-04-12 11:13:34 -03:00
|
|
|
param set MC_ROLLRATE_D 0.004
|
|
|
|
param set MC_PITCH_P 7.0
|
2015-06-16 06:21:36 -03:00
|
|
|
param set MC_PITCHRATE_P 0.19
|
2015-05-13 10:28:02 -03:00
|
|
|
param set MC_PITCHRATE_I 0.05
|
2014-04-12 11:13:34 -03:00
|
|
|
param set MC_PITCHRATE_D 0.004
|
2015-06-16 06:21:36 -03:00
|
|
|
param set MC_YAW_P 4.0
|
2014-04-12 11:13:34 -03:00
|
|
|
param set MC_YAWRATE_P 0.2
|
2015-06-05 16:45:34 -03:00
|
|
|
param set MC_YAWRATE_I 0.1
|
2014-04-12 11:13:34 -03:00
|
|
|
param set MC_YAWRATE_D 0.0
|
2015-06-05 16:45:34 -03:00
|
|
|
param set MC_YAW_FF 0.5
|
2014-04-12 11:13:34 -03:00
|
|
|
|
|
|
|
param set BAT_N_CELLS 4
|
|
|
|
fi
|
|
|
|
|
2015-01-06 18:25:06 -04:00
|
|
|
set MIXER quad_w
|
2014-04-12 11:13:34 -03:00
|
|
|
|
|
|
|
set PWM_MIN 1210
|
2014-05-12 04:58:41 -03:00
|
|
|
set PWM_MAX 2100
|
2014-04-12 11:13:34 -03:00
|
|
|
|
2014-11-17 12:02:57 -04:00
|
|
|
set PWM_OUT 1234
|