Files
bizhang_-obav/ROMFS/px4fmu_common/init.d/rc.fw_apps

36 lines
554 B
Plaintext
Raw Normal View History

2014-01-10 13:18:34 +01:00
#!nsh
#
# Standard apps for fixed wing
#
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
2014-01-10 13:18:34 +01: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
#
# Start the attitude and position estimator.
2014-01-10 13:18:34 +01:00
#
ekf2 start
2014-01-10 13:18:34 +01:00
#
# Start attitude controller.
2014-01-10 13:18:34 +01:00
#
fw_att_control start
fw_pos_control_l1 start
#
# Start Land Detector.
#
land_detector start fixedwing
#
# Start Wind and Airspeed Scale Estimator.
#
#wind_estimator start