mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
ROMFS: Reset the estimator param to EKF2 if LPE fails to start
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
# INAV (deprecated)
|
||||
if param compare SYS_MC_EST_GROUP 0
|
||||
then
|
||||
echo "ERROR [init] Estimator INAV deprecated. Using LPE"
|
||||
param set SYS_MC_EST_GROUP 1
|
||||
echo "ERROR [init] Estimator INAV deprecated. Using EKF2"
|
||||
param set SYS_MC_EST_GROUP 2
|
||||
param save
|
||||
fi
|
||||
|
||||
@@ -25,6 +25,9 @@ then
|
||||
then
|
||||
local_position_estimator start
|
||||
else
|
||||
echo "ERROR [init] Estimator LPE not available. Using EKF2"
|
||||
param set SYS_MC_EST_GROUP 2
|
||||
param save
|
||||
ekf2 start
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user