2014-01-10 13:18:34 +01:00
|
|
|
#!nsh
|
|
|
|
|
#
|
|
|
|
|
# Standard apps for fixed wing
|
|
|
|
|
#
|
2018-07-12 15:56:46 -06:00
|
|
|
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
|
|
|
|
#
|
2014-01-10 13:18:34 +01:00
|
|
|
|
2017-06-04 12:43:28 +02:00
|
|
|
# LPE
|
|
|
|
|
if param compare SYS_MC_EST_GROUP 1
|
|
|
|
|
then
|
|
|
|
|
echo "ERROR [init] Estimator LPE not supported on fixed wing. Using EKF2"
|
|
|
|
|
param set SYS_MC_EST_GROUP 2
|
|
|
|
|
param save
|
|
|
|
|
fi
|
|
|
|
|
|
2014-01-10 13:18:34 +01:00
|
|
|
#
|
2018-07-12 15:56:46 -06:00
|
|
|
# Start the attitude and position estimator.
|
2014-01-10 13:18:34 +01:00
|
|
|
#
|
2016-06-30 18:23:52 +02:00
|
|
|
ekf2 start
|
2014-01-10 13:18:34 +01:00
|
|
|
|
|
|
|
|
#
|
2018-07-12 15:56:46 -06:00
|
|
|
# Start attitude controller.
|
2014-01-10 13:18:34 +01:00
|
|
|
#
|
|
|
|
|
fw_att_control start
|
|
|
|
|
fw_pos_control_l1 start
|
2015-01-06 11:59:15 +01:00
|
|
|
|
|
|
|
|
#
|
2018-07-12 15:56:46 -06:00
|
|
|
# Start Land Detector.
|
2015-01-06 11:59:15 +01:00
|
|
|
#
|
2015-01-08 14:22:39 +01:00
|
|
|
land_detector start fixedwing
|
2018-03-14 10:59:49 +01:00
|
|
|
|
|
|
|
|
#
|
2018-07-12 15:56:46 -06:00
|
|
|
# Start Wind and Airspeed Scale Estimator.
|
2018-03-14 10:59:49 +01:00
|
|
|
#
|
2018-03-21 18:07:53 +01:00
|
|
|
#wind_estimator start
|