Closed TomRvr closed 5 years ago
I'm so sorry this took me so long to respond. Somehow this issue fell to the bottom of my inbox and I just noticed it this morning!
This error is thrown here estimator.c L#217
What's going on is that the estimator is looking at the magnitude of acceleration (line 165
) and if the magnitude of acceleration is within 10% of the nominal gravity vector, then the accelerometer measurement is fused, otherwise it is ignored. The UNHEALTHY_ESTIMATOR
error is thrown if more than 500ms have elapsed since the last time acceleration magnitude was close enough to gravity that we could fuse the accelerometer measurement and indicates that the estimator may be drifting, because we've been going off of gyros-only for a while.
This happens a lot more often in simulation than in hardware. I'm actually not 100% sure why that is the case, probably because the noise in hardware is often a bit larger than in sim, but it's not really anything to worry about. If your accelerometers are calibrated then that's really the best you can do.
We should probably extend the timeout to something like 10 seconds, rather than 500 ms and that would solve the annoying error. When I look at your log, it looks like the estimator is "recovering" (i.e. getting some valid acceleration measurements) within about .2 seconds, so everything seems to be working properly.
Thank you for your very clear answer. Now I understand why this error happened.
Congrats for your work on this project.
No Problem! Thanks!
Hello ! I try to fly a multi-rotor with gazebo simulation with the following configuration : OS Version : Ubuntu 16.04 ROS Kinetic Git tag : master Xbox controller
When I want to fly, all the nodes seems to be started correctly. rqt_graph![rosgraph](https://user-images.githubusercontent.com/45951526/50601679-32766480-0eb5-11e9-821c-cebaa66e1183.png)
On gazebo, I can arm the drone but when I want to slowly increase the throttle, the drone is uncontrollable and the Unhealthy estimator error occur : Terminal![image](https://user-images.githubusercontent.com/45951526/50600425-5041ca80-0eb1-11e9-834b-2f106180023c.png)
I might forget to configure one parameter but I can't find which one. Parameter file
I see this error is on the forum ( https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwif7oCfw8_fAhUB0RoKHaVSDokQFjAAegQIABAB&url=https%3A%2F%2Fdiscuss.rosflight.org%2Fdiscussion%2F11%2Funhealthy-estimator&usg=AOvVaw0LRiXSyyI0ZVY3OH5SQmpW ) but the forum seems to be down for the moment and I can't access to the topic.
I search for some help to indicate me the things to checks to find a solution. Thanks !