Hotfix: Ensured there are never two filters running at the same time if auto-magic happens via USB link

This commit is contained in:
Lorenz Meier
2013-07-18 15:20:36 +02:00
parent a5c8d8c5f2
commit e19d2e94ec
4 changed files with 19 additions and 7 deletions
+9 -2
View File
@@ -22,9 +22,16 @@ commander start
sh /etc/init.d/rc.sensors
# Start one of the estimators
if attitude_estimator_ekf start
if attitude_estimator_ekf status
then
echo "estimating attitude"
echo "multicopter att filter running"
else
if att_pos_estimator_ekf status
then
echo "fixedwing att filter running"
else
attitude_estimator_ekf start
fi
fi
# Start GPS