10016_3dr_iris 656 Bytes
Newer Older
1
#!nsh
2
3
4
#
# 3DR Iris Quadcopter
#
Lorenz Meier's avatar
Lorenz Meier committed
5
# Anton Babushkin <anton@px4.io>
6
#
7

8
9
sh /etc/init.d/rc.mc_defaults

Anton Babushkin's avatar
Anton Babushkin committed
10
11
if [ $DO_AUTOCONFIG == yes ]
then
12
	# TODO tune roll/pitch separately
Lorenz Meier's avatar
Lorenz Meier committed
13
	param set MC_ROLL_P 7.0
14
15
16
	param set MC_ROLLRATE_P 0.13
	param set MC_ROLLRATE_I 0.0
	param set MC_ROLLRATE_D 0.004
Lorenz Meier's avatar
Lorenz Meier committed
17
	param set MC_PITCH_P 7.0
18
19
20
	param set MC_PITCHRATE_P 0.13
	param set MC_PITCHRATE_I 0.0
	param set MC_PITCHRATE_D 0.004
21
22
23
	param set MC_YAW_P 2.5
	param set MC_YAWRATE_P 0.25
	param set MC_YAWRATE_I 0.25
24
25
	param set MC_YAWRATE_D 0.0

Anton Babushkin's avatar
Anton Babushkin committed
26
27
	param set BAT_V_SCALING 0.00989
	param set BAT_C_SCALING 0.0124
28
fi
29

30
set MIXER FMU_quad_w
31

32
set PWM_OUT 1234
33
34
35

set PWM_MIN 1200
set PWM_MAX 1950