2018-12-18 04:26:22 -04:00
|
|
|
#!/bin/sh
|
2014-12-02 05:30:26 -04:00
|
|
|
#
|
2018-07-12 18:56:46 -03:00
|
|
|
# Standard apps for vtol: Attitude/Position estimator, Attitude/Position control.
|
2014-12-02 05:30:26 -04:00
|
|
|
#
|
2018-07-12 18:56:46 -03:00
|
|
|
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
2016-04-14 16:22:25 -03:00
|
|
|
#
|
|
|
|
|
2018-07-12 18:56:46 -03:00
|
|
|
###############################################################################
|
|
|
|
# Begin Estimator group selection #
|
|
|
|
###############################################################################
|
2014-12-02 05:30:26 -04:00
|
|
|
|
2020-10-27 11:56:11 -03:00
|
|
|
ekf2 start &
|
2018-07-12 18:56:46 -03:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# End Estimator group selection #
|
|
|
|
###############################################################################
|
2016-04-14 16:22:25 -03:00
|
|
|
|
2022-08-24 15:44:17 -03:00
|
|
|
#
|
|
|
|
# Start Control Allocator
|
|
|
|
#
|
|
|
|
control_allocator start
|
2021-11-24 05:47:45 -04:00
|
|
|
|
2019-11-30 13:58:36 -04:00
|
|
|
airspeed_selector start
|
2016-04-14 16:22:25 -03:00
|
|
|
|
2014-12-02 05:30:26 -04:00
|
|
|
vtol_att_control start
|
2015-08-06 10:24:52 -03:00
|
|
|
|
2019-11-30 13:58:36 -04:00
|
|
|
mc_rate_control start vtol
|
|
|
|
mc_att_control start vtol
|
2021-01-04 11:21:47 -04:00
|
|
|
flight_mode_manager start
|
2019-11-30 13:58:36 -04:00
|
|
|
mc_pos_control start vtol
|
2020-03-11 22:20:54 -03:00
|
|
|
mc_hover_thrust_estimator start
|
2021-11-04 14:05:31 -03:00
|
|
|
|
|
|
|
if param greater -s MC_AT_EN 0
|
|
|
|
then
|
|
|
|
mc_autotune_attitude_control start
|
|
|
|
fi
|
2019-11-30 13:58:36 -04:00
|
|
|
|
2023-01-04 12:14:00 -04:00
|
|
|
fw_rate_control start vtol
|
2019-11-30 13:58:36 -04:00
|
|
|
fw_att_control start vtol
|
2023-04-13 12:00:04 -03:00
|
|
|
fw_pos_control start vtol
|
2021-10-01 12:09:55 -03:00
|
|
|
fw_autotune_attitude_control start vtol
|
2019-11-30 13:58:36 -04:00
|
|
|
|
2015-08-06 10:24:52 -03:00
|
|
|
# Start Land Detector
|
2015-08-14 02:36:16 -03:00
|
|
|
# Multicopter for now until we have something for VTOL
|
2015-08-06 10:24:52 -03:00
|
|
|
#
|
2015-08-15 11:30:29 -03:00
|
|
|
land_detector start vtol
|