10016_3dr_iris 959 Bytes
Newer Older
1
2
#!nsh

Anton Babushkin's avatar
Anton Babushkin committed
3
4
# Maintainers: Anton Babushkin <anton.babushkin@me.com>

5
echo "[init] 3DR Iris Quad"
Simon Wilks's avatar
Simon Wilks committed
6

Anton Babushkin's avatar
Anton Babushkin committed
7
8
# Use generic wide arm quad X PWM as base
sh /etc/init.d/10001_quad_w
9

Anton Babushkin's avatar
Anton Babushkin committed
10
11
12
13
14
if [ $DO_AUTOCONFIG == yes ]
then
	#
	# Default parameters for this platform
	#
15
	param set MC_ATT_P 9.0
Anton Babushkin's avatar
Anton Babushkin committed
16
17
18
19
20
	param set MC_ATT_I 0.0
	param set MC_ATT_D 0.0
	param set MC_ATTRATE_P 0.13
	param set MC_ATTRATE_I 0.0
	param set MC_ATTRATE_D 0.004
21
	param set MC_YAWPOS_P 0.5
Anton Babushkin's avatar
Anton Babushkin committed
22
23
	param set MC_YAWPOS_I 0.15
	param set MC_YAWPOS_D 0.0
24
	param set MC_YAWRATE_P 0.2
Anton Babushkin's avatar
Anton Babushkin committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
	param set MC_YAWRATE_I 0.0
	param set MC_YAWRATE_D 0.0
	
	param set MPC_TILT_MAX 0.5
	param set MPC_THR_MAX 0.8
	param set MPC_THR_MIN 0.2
	param set MPC_XY_D 0
	param set MPC_XY_P 0.5
	param set MPC_XY_VEL_D 0
	param set MPC_XY_VEL_I 0
	param set MPC_XY_VEL_MAX 3
	param set MPC_XY_VEL_P 0.2
	param set MPC_Z_D 0
	param set MPC_Z_P 1
	param set MPC_Z_VEL_D 0
	param set MPC_Z_VEL_I 0.1
	param set MPC_Z_VEL_MAX 2
	param set MPC_Z_VEL_P 0.20
43
fi