mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 00:48:23 +08:00
59 lines
873 B
Bash
59 lines
873 B
Bash
#!/bin/sh
|
|
#
|
|
# Standard apps for multirotors. Attitude/Position estimator, Attitude/Position control.
|
|
#
|
|
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
|
#
|
|
|
|
#
|
|
# Start Control Allocator
|
|
#
|
|
control_allocator start
|
|
|
|
#
|
|
# Start Multicopter Rate Controller.
|
|
#
|
|
mc_rate_control start
|
|
|
|
#
|
|
# Start Multicopter Attitude Controller.
|
|
#
|
|
mc_att_control start
|
|
|
|
if param greater -s MC_AT_EN 0
|
|
then
|
|
mc_autotune_attitude_control start
|
|
fi
|
|
|
|
#
|
|
# Start Vision Target Estimator.
|
|
#
|
|
|
|
if param greater -s VTE_EN 0
|
|
then
|
|
vision_target_estimator start
|
|
fi
|
|
|
|
#
|
|
# Start Multicopter Position Controller.
|
|
#
|
|
mc_hover_thrust_estimator start
|
|
flight_mode_manager start
|
|
mc_pos_control start
|
|
|
|
#
|
|
# Start Multicopter Land Detector.
|
|
#
|
|
land_detector start multicopter
|
|
|
|
if param compare -s MC_NN_EN 1
|
|
then
|
|
mc_nn_control start
|
|
fi
|
|
|
|
|
|
if param compare -s MC_RAPTOR_ENABLE 1
|
|
then
|
|
mc_raptor start
|
|
fi
|