mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
Add estimator selection logic to VTOL apps
This commit is contained in:
@@ -4,9 +4,22 @@
|
|||||||
# att & pos estimator, att & pos control.
|
# att & pos estimator, att & pos control.
|
||||||
#
|
#
|
||||||
|
|
||||||
attitude_estimator_q start
|
# The system is defaulting to INAV_ENABLED = 1
|
||||||
#ekf_att_pos_estimator start
|
# but users can alternatively try the EKF-based
|
||||||
position_estimator_inav start
|
# filter by setting INAV_ENABLED = 0
|
||||||
|
if param compare INAV_ENABLED 1
|
||||||
|
then
|
||||||
|
attitude_estimator_q start
|
||||||
|
position_estimator_inav start
|
||||||
|
else
|
||||||
|
if param compare LPE_ENABLED 1
|
||||||
|
then
|
||||||
|
attitude_estimator_q start
|
||||||
|
local_position_estimator start
|
||||||
|
else
|
||||||
|
ekf2 start
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
vtol_att_control start
|
vtol_att_control start
|
||||||
mc_att_control start
|
mc_att_control start
|
||||||
|
|||||||
Reference in New Issue
Block a user