10016_3dr_iris 633 Bytes
Newer Older
1
#!nsh
2
3
4
#
# 3DR Iris Quadcopter
#
5
# Anton Babushkin <anton.babushkin@me.com>
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
13
14
15
16
17
18
19
20
21
22
23
24
25
	# TODO tune roll/pitch separately
	param set MC_ROLL_P 9.0
	param set MC_ROLLRATE_P 0.13
	param set MC_ROLLRATE_I 0.0
	param set MC_ROLLRATE_D 0.004
	param set MC_PITCH_P 9.0
	param set MC_PITCHRATE_P 0.13
	param set MC_PITCHRATE_I 0.0
	param set MC_PITCHRATE_D 0.004
	param set MC_YAW_P 0.5
	param set MC_YAWRATE_P 0.2
	param set MC_YAWRATE_I 0.0
	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_OUTPUTS 1234