Christom,
There’s something strange happening to one of he two IMUs because they disagree a lot. In the graph below you an see the LSM303d is mostly flat (red) but the MPu6k (green) is showing lots of movement.
[attachment=0]IMU1vs2.png[/attachment]
After switching to another flight controller I confirm this odd behavior was due to one of the two IMU’s giving wrong values. The quad flies perfectly on the new flight controller.
However, this makes me ask a few questions regarding the code’s current behavior. Correct me if I’m wrong, but the EKF2_RATIO is especially made to get a ‘trust index’ in the IMU’s and make the EKF rely on the IMU that is the most trustable.
In that case, it switched 100% to the IMU that was wrong, which is quite surprising. What do you think ?
Christom,
Yes, it should weight it’s usage to the IMU with the least noise. Sadly we only log the vibes from the first IMU (the MPU6k normally) so we can’t compare them to the LSM303d to double check that the weighting was working correctly.
The vibe levels for the MPU6k are actually quite low considering all the spikes we see in it’s output. I’ll ask Paul Riseborough (EKF master) to have a peek tomorrow.
[attachment=0]Vibes.png[/attachment]
The 3 IMU idea has been brought up before. The Solo’s Pixhawk2 actually has 3 but sadly the 3rd one isn’t vibration dampened so it’s a bit useless in breaking the tie between the other two.