aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.mc_apps
blob: 12049096a54f494c88ae31fc6c47c958b0051189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!nsh
#
# Standard apps for multirotors:
# att & pos estimator, att & pos control.
#

# The system is defaulting to INAV_ENABLED = 1
# but users can alternatively try the EKF-based
# filter by setting INAV_ENABLED = 0
if param compare INAV_ENABLED 1
then
	# The system is defaulting to EKF_ATT_ENABLED = 0
	# and uses the new quaternion based complimentary
	# filter. However users can enable the older EKF
	# filter if they choose to.
	if param compare EKF_ATT_ENABLED 1
	then
		attitude_estimator_ekf start
	else
		attitude_estimator_q start
	fi
	position_estimator_inav start
else
	ekf_att_pos_estimator start
fi

if mc_att_control start
then
else
	# try the multiplatform version
	mc_att_control_m start
fi

if mc_pos_control start
then
else
	# try the multiplatform version
	mc_pos_control_m start
fi

#
# Start Land Detector
#
land_detector start multicopter