2013-08-24 15:32:46 -03:00
|
|
|
#!nsh
|
|
|
|
#
|
2014-02-01 10:46:04 -04:00
|
|
|
# Standard apps for multirotors:
|
|
|
|
# att & pos estimator, att & pos control.
|
2013-08-24 15:32:46 -03:00
|
|
|
#
|
|
|
|
|
2016-04-14 16:22:25 -03:00
|
|
|
|
|
|
|
#---------------------------------------
|
|
|
|
# Estimator group selction
|
|
|
|
#
|
|
|
|
# INAV
|
|
|
|
if param compare SYS_MC_EST_GROUP 0
|
2015-03-01 13:05:22 -04:00
|
|
|
then
|
2015-10-03 07:48:51 -03:00
|
|
|
attitude_estimator_q start
|
2015-03-01 13:05:22 -04:00
|
|
|
position_estimator_inav start
|
|
|
|
fi
|
2013-08-24 15:32:46 -03:00
|
|
|
|
2016-04-14 16:22:25 -03:00
|
|
|
# LPE
|
|
|
|
if param compare SYS_MC_EST_GROUP 1
|
|
|
|
then
|
|
|
|
attitude_estimator_q start
|
|
|
|
local_position_estimator start
|
|
|
|
fi
|
|
|
|
|
|
|
|
# EKF
|
|
|
|
if param compare SYS_MC_EST_GROUP 2
|
|
|
|
then
|
|
|
|
ekf2 start
|
|
|
|
fi
|
|
|
|
#---------------------------------------
|
|
|
|
|
2015-01-09 04:15:48 -04:00
|
|
|
if mc_att_control start
|
|
|
|
then
|
|
|
|
else
|
|
|
|
# try the multiplatform version
|
|
|
|
mc_att_control_m start
|
|
|
|
fi
|
2015-01-28 03:04:00 -04:00
|
|
|
|
|
|
|
if mc_pos_control start
|
|
|
|
then
|
|
|
|
else
|
|
|
|
# try the multiplatform version
|
|
|
|
mc_pos_control_m start
|
|
|
|
fi
|
2015-01-06 06:59:15 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Start Land Detector
|
|
|
|
#
|
2015-01-08 09:22:39 -04:00
|
|
|
land_detector start multicopter
|