mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
startup scripts: remove INAV, start LPE if INAV selected
This commit is contained in:
@@ -8,11 +8,12 @@
|
|||||||
#---------------------------------------
|
#---------------------------------------
|
||||||
# Estimator group selction
|
# Estimator group selction
|
||||||
#
|
#
|
||||||
# INAV
|
# INAV (deprecated)
|
||||||
if param compare SYS_MC_EST_GROUP 0
|
if param compare SYS_MC_EST_GROUP 0
|
||||||
then
|
then
|
||||||
attitude_estimator_q start
|
echo "ERROR [init] Estimator INAV deprecated. Using LPE"
|
||||||
position_estimator_inav start
|
param set SYS_MC_EST_GROUP 1
|
||||||
|
param save
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# LPE
|
# LPE
|
||||||
|
|||||||
@@ -9,11 +9,12 @@
|
|||||||
#---------------------------------------
|
#---------------------------------------
|
||||||
# Estimator group selction
|
# Estimator group selction
|
||||||
#
|
#
|
||||||
# INAV
|
# INAV (deprecated)
|
||||||
if param compare SYS_MC_EST_GROUP 0
|
if param compare SYS_MC_EST_GROUP 0
|
||||||
then
|
then
|
||||||
attitude_estimator_q start
|
echo "ERROR [init] Estimator INAV deprecated. Using LPE"
|
||||||
position_estimator_inav start
|
param set SYS_MC_EST_GROUP 1
|
||||||
|
param save
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# LPE
|
# LPE
|
||||||
|
|||||||
@@ -95,11 +95,10 @@ PARAM_DEFINE_INT32(SYS_RESTART_TYPE, 2);
|
|||||||
*
|
*
|
||||||
* Set the group of estimators used for multicopters and vtols
|
* Set the group of estimators used for multicopters and vtols
|
||||||
*
|
*
|
||||||
* @value 0 position_estimator_inav, attitude_estimator_q
|
|
||||||
* @value 1 local_position_estimator, attitude_estimator_q
|
* @value 1 local_position_estimator, attitude_estimator_q
|
||||||
* @value 2 ekf2
|
* @value 2 ekf2
|
||||||
*
|
*
|
||||||
* @min 0
|
* @min 1
|
||||||
* @max 2
|
* @max 2
|
||||||
* @reboot_required true
|
* @reboot_required true
|
||||||
* @group System
|
* @group System
|
||||||
|
|||||||
Reference in New Issue
Block a user